mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-30 09:46:30 -05:00
Fix coding style.
This commit is contained in:
parent
cabec57631
commit
b499a6df77
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user