summaryrefslogtreecommitdiffhomepage
path: root/options/value.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-22 13:21:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:01:53 +0200
commit519b4a3ae10c96951db917f2439982c7d2391874 (patch)
treeec55d8a12fa740803e6da2074eec04f465e98ede /options/value.hpp
parent0f182b791622ad4491c8aabf8edce21a63839bdc (diff)
compat/macros: rename portability macros
use `cc_xx' rather than awkward synonyms.
Diffstat (limited to 'options/value.hpp')
-rw-r--r--options/value.hpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/options/value.hpp b/options/value.hpp
index 47a4d631..42e72e50 100644
--- a/options/value.hpp
+++ b/options/value.hpp
@@ -42,7 +42,7 @@ class value final : public base_value
return val1.value<stored_type>() == val2.value<stored_type>();
}
- never_inline
+ cc_noinline
t get() const
{
if (self_name.isEmpty())
@@ -59,7 +59,7 @@ class value final : public base_value
}
public:
- never_inline
+ cc_noinline
t operator=(const t& datum)
{
if (self_name.isEmpty())
@@ -74,7 +74,7 @@ public:
static constexpr inline Qt::ConnectionType DIRECT_CONNTYPE = Qt::DirectConnection;
static constexpr inline Qt::ConnectionType SAFE_CONNTYPE = Qt::QueuedConnection;
- never_inline
+ cc_noinline
value(bundle b, const QString& name, t def) :
base_value(b, name, &is_equal, std::type_index(typeid(stored_type))),
def(def)
@@ -91,49 +91,49 @@ public:
static_assert(k > 0, "");
}
- never_inline
+ cc_noinline
t default_value() const
{
return def;
}
- never_inline
+ cc_noinline
void set_to_default() override
{
*this = def;
}
- never_inline
+ cc_noinline
operator t() const { return get(); }
- never_inline
+ cc_noinline
t operator->() const
{
return get();
}
- never_inline
+ cc_noinline
void reload() override
{
if (!self_name.isEmpty())
*this = static_cast<t>(*this);
}
- never_inline
+ cc_noinline
void bundle_value_changed() const override
{
if (!self_name.isEmpty())
emit valueChanged(traits::to_storage(get()));
}
- never_inline
+ cc_noinline
t operator()() const
{
return get();
}
template<typename u>
- never_inline
+ cc_noinline
u to() const
{
return static_cast<u>(get());