X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fapps%2FPswGen%2FGenerator%2Fmodule.cpp;h=7921337b5fd9fb4366c3269666d56f3ec73b7e57;hb=refs%2Fheads%2Fmaster;hp=9e24e561f39d16d317ab6b2371694366a393dd3c;hpb=538847461e753e793b4fa1795c5c61bed1fc1c0e;p=evaf
diff --git a/src/apps/PswGen/Generator/module.cpp b/src/apps/PswGen/Generator/module.cpp
index 9e24e56..7921337 100644
--- a/src/apps/PswGen/Generator/module.cpp
+++ b/src/apps/PswGen/Generator/module.cpp
@@ -3,7 +3,7 @@
* @brief Implementation of the iGenerator interface
* @author Enar Vaikene
*
- * Copyright (c) 2011-2012 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -18,7 +18,6 @@
*/
#include "module.h"
-#include "version.h"
#include
#include
@@ -26,7 +25,6 @@
#include
VER_EXPORT_VERSION_INFO()
-Q_EXPORT_PLUGIN2(VER_MODULE_NAME_STR, eVaf::PswGen::Generator::Module)
using namespace eVaf;
using namespace eVaf::PswGen;
@@ -53,7 +51,7 @@ Module::~Module()
bool Module::init(QString const & args)
{
- Q_UNUSED(args);
+ Q_UNUSED(args)
EVAF_INFO("%s initialized", qPrintable(objectName()));
@@ -87,7 +85,7 @@ GeneratorImpl::~GeneratorImpl()
QString GeneratorImpl::generatePassword(QString const & name, QString const & masterPassword, int length, uint flags) const
{
- Q_UNUSED(flags);
+ Q_UNUSED(flags)
QByteArray inputString = QString("%1%2").arg(name).arg(masterPassword).toLatin1();
QCryptographicHash hash(QCryptographicHash::Md5);
@@ -99,7 +97,7 @@ QString GeneratorImpl::generatePassword(QString const & name, QString const & ma
if (flags & uint(ALPHANUMERIC)) {
// Convert all characters to alpha-numeric
for (int i = 0; i < result.size(); ++i) {
- unsigned char c = result.at(i);
+ char c = result.at(i);
while (isalnum(c) == 0)
c++;
result[i] = c;