summaryrefslogtreecommitdiffhomepage
path: root/options/group.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-05 15:54:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-05 14:35:29 +0000
commitf0216a3c53d43918295f1bd81975b391f4e5ed3b (patch)
treeb6311d48559bbdb4b657beed1bd8164d9157b03f /options/group.hpp
parent39ea3871c1b3f594df846bc0b9a627c9880ecea4 (diff)
options: don't use typeindex w/ lambdas
Rename traits' functions to be more explicit. Most of the changes are pretty old and I can't read them at this time, sorry. Adjust usages. Issue: #825 Reported-by: @DanielKinsman
Diffstat (limited to 'options/group.hpp')
-rw-r--r--options/group.hpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/options/group.hpp b/options/group.hpp
index ef9f1121..76bb939b 100644
--- a/options/group.hpp
+++ b/options/group.hpp
@@ -4,21 +4,16 @@
#include "compat/base-path.hpp"
#include "compat/library-path.hpp"
-#include "compat/qhash.hpp"
#include "compat/macros.hpp"
+#include "compat/qhash.hpp"
#include "export.hpp"
#include <optional>
#include <unordered_map>
-#include <QHash>
#include <QString>
-#include <QMutex>
-#include <QFile>
-#include <QDir>
-#include <QStandardPaths>
#include <QVariant>
-#include <QSettings>
+
#include <QDebug>
// XXX TODO remove qsettings usage -sh 20180624
@@ -36,12 +31,6 @@ namespace options::detail {
void put(const QString& s, const QVariant& d);
bool contains(const QString& s) const;
- template<typename t>
- cc_noinline t get(const QString& k) const
- {
- return get_variant(k).value<t>();
- }
-
cc_noinline QVariant get_variant(const QString& name) const;
};
} // ns options::detail