Make argument keys immutable.

This commit is contained in:
Florian Geyer 2013-04-18 21:30:50 +02:00
parent 63f7a0685f
commit cabec57631
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
#include "ArgumentParser.h"
QStringList ArgumentParser::argumentKeys = QStringList() << "password" << "config" << "filename";
const QStringList ArgumentParser::argumentKeys = QStringList() << "password" << "config" << "filename";
QHash<QString, QString> ArgumentParser::parseArguments(const QStringList& args)
{

View File

@ -29,7 +29,7 @@ class ArgumentParser
public:
static QHash<QString, QString> parseArguments(const QStringList& args);
private:
static QStringList argumentKeys;
static const QStringList argumentKeys;
static void parseOption(int& i, QHash<QString, QString>& argumentMap, const QStringList& args);
};