summaryrefslogtreecommitdiffhomepage
path: root/options/base-value.cpp
blob: 39453a09a27c6ee7d05964caaba20a82a6370b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "base-value.hpp"

using namespace options;

value_::value_(bundle const& b, const QString& name) noexcept :
    b(b), self_name(name)
{
    b->on_value_created(this);
}

value_::~value_()
{
    b->on_value_destructed(this);
}

namespace options::detail {

// necessary due to circular dependency
void set_value_to_default(value_* val)
{
    val->set_to_default();
}

} // ns options::detail