mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-16 01:37:20 -05:00
Make argument keys immutable.
This commit is contained in:
parent
63f7a0685f
commit
cabec57631
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "ArgumentParser.h"
|
#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)
|
QHash<QString, QString> ArgumentParser::parseArguments(const QStringList& args)
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,7 @@ class ArgumentParser
|
|||||||
public:
|
public:
|
||||||
static QHash<QString, QString> parseArguments(const QStringList& args);
|
static QHash<QString, QString> parseArguments(const QStringList& args);
|
||||||
private:
|
private:
|
||||||
static QStringList argumentKeys;
|
static const QStringList argumentKeys;
|
||||||
static void parseOption(int& i, QHash<QString, QString>& argumentMap, const QStringList& args);
|
static void parseOption(int& i, QHash<QString, QString>& argumentMap, const QStringList& args);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user