mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-08 18:02:51 -05:00
Fix coding style.
This commit is contained in:
parent
cabec57631
commit
b499a6df77
2 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue