From b499a6df775f4ab4f102a0eac8dd00a5490c1536 Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Sat, 27 Apr 2013 10:57:01 +0200 Subject: [PATCH] Fix coding style. --- src/core/ArgumentParser.cpp | 4 ++-- src/core/ArgumentParser.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/ArgumentParser.cpp b/src/core/ArgumentParser.cpp index dc6a0a56c..4ecbabed6 100644 --- a/src/core/ArgumentParser.cpp +++ b/src/core/ArgumentParser.cpp @@ -17,7 +17,7 @@ #include "ArgumentParser.h" -const QStringList ArgumentParser::argumentKeys = QStringList() << "password" << "config" << "filename"; +const QStringList ArgumentParser::ArgumentKeys = QStringList() << "password" << "config" << "filename"; QHash ArgumentParser::parseArguments(const QStringList& args) { @@ -46,7 +46,7 @@ void ArgumentParser::parseOption(int& i, QHash& argumentMap, c } QString argument(args[i].mid(2)); - if (argumentKeys.contains(argument)) { + if (ArgumentKeys.contains(argument)) { argumentMap.insert(argument, args[i + 1]); } else { diff --git a/src/core/ArgumentParser.h b/src/core/ArgumentParser.h index 1e6473fce..3c0279164 100644 --- a/src/core/ArgumentParser.h +++ b/src/core/ArgumentParser.h @@ -28,9 +28,11 @@ class ArgumentParser public: static QHash parseArguments(const QStringList& args); + private: - static const QStringList argumentKeys; static void parseOption(int& i, QHash& argumentMap, const QStringList& args); + + static const QStringList ArgumentKeys; }; #endif // KEEPASSX_ARGUMENT_PARSER_H