diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-21 13:59:32 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-21 13:59:32 +0200 |
commit | 4edca6a80408037b4f753b44c460810a51489522 (patch) | |
tree | e816798a4d61ce12fce0a944dff49ce3f651b470 /lib/configuration | |
parent | Remove unneeded po::store (diff) | |
download | smolbote-4edca6a80408037b4f753b44c460810a51489522.tar.xz |
Remove unknown option parsing
Diffstat (limited to 'lib/configuration')
-rw-r--r-- | lib/configuration/configuration.cpp | 2 | ||||
-rw-r--r-- | lib/configuration/configuration.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp index d3a8b23..01bf1c6 100644 --- a/lib/configuration/configuration.cpp +++ b/lib/configuration/configuration.cpp @@ -106,7 +106,7 @@ bool Configuration::read(const QString &path) return true; } -bool Configuration::parse(int argc, const char **argv) +bool Configuration::parse(int argc, char **argv) { try { po::store(po::parse_command_line(argc, argv, desc), vm); diff --git a/lib/configuration/configuration.h b/lib/configuration/configuration.h index c5e044f..5b59766 100644 --- a/lib/configuration/configuration.h +++ b/lib/configuration/configuration.h @@ -26,7 +26,7 @@ public: static QString defaultUserConfigLocation(); bool read(const QString &path); - bool parse(int argc, const char **argv); + bool parse(int argc, char **argv); template <typename T> std::optional<T> value(const char *path) const |