Fix coding style.

This commit is contained in:
Florian Geyer 2013-04-27 10:57:01 +02:00
parent cabec57631
commit b499a6df77
2 changed files with 5 additions and 3 deletions

View File

@ -17,7 +17,7 @@
#include "ArgumentParser.h"
const QStringList ArgumentParser::argumentKeys = QStringList() << "password" << "config" << "filename";
const QStringList ArgumentParser::ArgumentKeys = QStringList() << "password" << "config" << "filename";
QHash<QString, QString> ArgumentParser::parseArguments(const QStringList& args)
{
@ -46,7 +46,7 @@ void ArgumentParser::parseOption(int& i, QHash<QString, QString>& argumentMap, c
}
QString argument(args[i].mid(2));
if (argumentKeys.contains(argument)) {
if (ArgumentKeys.contains(argument)) {
argumentMap.insert(argument, args[i + 1]);
}
else {

View File

@ -28,9 +28,11 @@ class ArgumentParser
public:
static QHash<QString, QString> parseArguments(const QStringList& args);
private:
static const QStringList argumentKeys;
static void parseOption(int& i, QHash<QString, QString>& argumentMap, const QStringList& args);
static const QStringList ArgumentKeys;
};
#endif // KEEPASSX_ARGUMENT_PARSER_H