* @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.
*
bool Module::init(QString const & args)
{
- Q_UNUSED(args);
+ Q_UNUSED(args)
EVAF_INFO("%s initialized", qPrintable(objectName()));
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);
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;