From f0216a3c53d43918295f1bd81975b391f4e5ed3b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 5 Oct 2018 15:54:01 +0200 Subject: 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 --- options/group.hpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'options/group.hpp') 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 #include -#include #include -#include -#include -#include -#include #include -#include + #include // 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 - cc_noinline t get(const QString& k) const - { - return get_variant(k).value(); - } - cc_noinline QVariant get_variant(const QString& name) const; }; } // ns options::detail -- cgit v1.2.3