aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/configuration.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-12-08 13:34:21 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-12-08 13:34:21 +0100
commit8ec2d92953e3d72664bb9bf545bddaf0c0d851a1 (patch)
treef81ed0e366ca84157d18bbb128fb3a83e0d47b79 /lib/configuration/configuration.h
parentSplit crash handler code off main (diff)
downloadsmolbote-8ec2d92953e3d72664bb9bf545bddaf0c0d851a1.tar.xz
Fix options not getting overwritten by command line
Diffstat (limited to 'lib/configuration/configuration.h')
-rw-r--r--lib/configuration/configuration.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/configuration/configuration.h b/lib/configuration/configuration.h
index fd18fc9..162fbd7 100644
--- a/lib/configuration/configuration.h
+++ b/lib/configuration/configuration.h
@@ -23,12 +23,9 @@ class Configuration : public QObject
Q_OBJECT
public:
- explicit Configuration(QObject *parent = nullptr);
+ explicit Configuration(int argc, char** argv, const std::string &path, QObject *parent = nullptr);
~Configuration() = default;
- bool parse(const std::string &path);
- bool parse(int argc, char **argv);
-
bool exists(const char *path)
{
return vm.count(path) ? true : false;