summaryrefslogtreecommitdiffhomepage
path: root/options/base-value.cpp
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/base-value.cpp
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/base-value.cpp')
-rw-r--r--options/base-value.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/options/base-value.cpp b/options/base-value.cpp
index bcbbd1dc..ec96fe6c 100644
--- a/options/base-value.cpp
+++ b/options/base-value.cpp
@@ -2,18 +2,15 @@
using namespace options;
-value_::value_(bundle const& b, const QString& name, value_::comparator cmp, std::type_index type_idx) :
- b(b),
- self_name(name),
- cmp(cmp),
- type_index(type_idx)
+value_::value_(bundle const& b, const QString& name) :
+ b(b), self_name(name)
{
- b->on_value_created(name, this);
+ b->on_value_created(this);
}
value_::~value_()
{
- b->on_value_destructed(self_name, this);
+ b->on_value_destructed(this);
}
void value_::notify() const
@@ -23,7 +20,7 @@ void value_::notify() const
namespace options::detail {
-void set_base_value_to_default(value_* val)
+void set_value_to_default(value_* val)
{
val->set_to_default();
}