diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-28 17:26:05 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-28 21:27:35 +0200 |
commit | 0c27d726a900b901e8bffafe993a3d3e36bf27f3 (patch) | |
tree | 960bcda73075a62826300d7805f6db1b303ac540 /options/value.hpp | |
parent | c80dd2e156e20f028cf4631fd7874a89c3568bab (diff) |
random cleanups
Diffstat (limited to 'options/value.hpp')
-rw-r--r-- | options/value.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/options/value.hpp b/options/value.hpp index c8fb02ca..2c2e9dd0 100644 --- a/options/value.hpp +++ b/options/value.hpp @@ -34,11 +34,11 @@ template<typename t> class value final : public base_value { using traits = detail::value_traits<t, t, void>; - using element_type = typename traits::element_type; + using stored_type = typename traits::stored_type; static bool is_equal(const QVariant& val1, const QVariant& val2) { - return val1.value<element_type>() == val2.value<element_type>(); + return val1.value<stored_type>() == val2.value<stored_type>(); } never_inline @@ -52,7 +52,7 @@ class value final : public base_value if (!b->contains(self_name) || variant.type() == QVariant::Invalid) return def; - const element_type x(variant.value<element_type>()); + const stored_type x(variant.value<stored_type>()); return traits::from_value(traits::from_storage(x), def); } @@ -75,7 +75,7 @@ public: never_inline value(bundle b, const QString& name, t def) : - base_value(b, name, &is_equal, std::type_index(typeid(element_type))), + base_value(b, name, &is_equal, std::type_index(typeid(stored_type))), def(def) { if (!self_name.isEmpty()) |