diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-29 10:35:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-29 13:18:29 +0200 |
commit | ee7dbf946a77450e8bf49ea4b64e9b922a951c1f (patch) | |
tree | b8e2a270885ba1b69191e097087d2d01b3e4dd26 /opentrack-compat/options.hpp | |
parent | 87622615e5adc5b96f404b3255aa6af5a90043ee (diff) |
compat/options: make inline to fix lto
Diffstat (limited to 'opentrack-compat/options.hpp')
-rw-r--r-- | opentrack-compat/options.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/opentrack-compat/options.hpp b/opentrack-compat/options.hpp index 20f26d26..d7101674 100644 --- a/opentrack-compat/options.hpp +++ b/opentrack-compat/options.hpp @@ -198,7 +198,10 @@ namespace options { using pbundle = std::shared_ptr<detail::opt_bundle>; - pbundle bundle(const QString& name); + inline pbundle bundle(const QString& name) + { + return detail::singleton().bundle(name); + } #define DEFINE_SLOT(t) void setValue(t datum) { store(datum); } #define DEFINE_SIGNAL(t) void valueChanged(t) |