diff options
Diffstat (limited to 'options/value.cpp')
| -rw-r--r-- | options/value.cpp | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/options/value.cpp b/options/value.cpp index d3d24a58..81a094e6 100644 --- a/options/value.cpp +++ b/options/value.cpp @@ -1,35 +1,5 @@ -/* Copyright (c) 2015-2016, Stanislaw Halik <sthalik@misaki.pl> - - * Permission to use, copy, modify, and/or distribute this - * software for any purpose with or without fee is hereby granted, - * provided that the above copyright notice and this permission - * notice appear in all copies. - */ +// instantiate the "template class" value<t> symbols +#define OTR_OPTIONS_INST_VALUE OTR_TEMPLATE_EXPORT #include "value.hpp" -namespace options { - -base_value::base_value(bundle b, const QString& name, base_value::comparator cmp, std::type_index type_idx) : - b(b), - self_name(name), - cmp(cmp), - type_index(type_idx) -{ - b->on_value_created(name, this); -} - -base_value::~base_value() -{ - b->on_value_destructed(self_name, this); -} - -namespace detail -{ - void set_base_value_to_default(base_value* val) - { - val->set_to_default(); - } -} - -} // ns options |
