mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Make argument keys immutable.
This commit is contained in:
parent
63f7a0685f
commit
cabec57631
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user