fix cli commands, translations and codestyle

This commit is contained in:
thez3ro 2018-02-06 01:17:36 +01:00
parent 6723f4215a
commit 1bfbb9242c
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
30 changed files with 70 additions and 67 deletions

View file

@ -34,8 +34,8 @@
Estimate::Estimate()
{
this->name = QString("estimate");
this->description = QObject::tr("Estimate the entropy of a password.");
name = QString("estimate");
description = QObject::tr("Estimate the entropy of a password.");
}
Estimate::~Estimate()
@ -138,7 +138,7 @@ static void estimate(const char* pwd, bool advanced)
}
}
int Estimate::execute(QStringList arguments)
int Estimate::execute(const QStringList& arguments)
{
QTextStream inputTextStream(stdin, QIODevice::ReadOnly);
QTextStream outputTextStream(stdout, QIODevice::WriteOnly);