diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-22 15:13:47 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-22 15:55:43 +0100 |
commit | e44b2853196565ebd22eb1e27109e5e54e77ed15 (patch) | |
tree | 869c269bb79a657c6d670e5fcc8ff198a818df66 | |
parent | 7075c9a3612f39edf4f068705f7a1ebc4ad0614e (diff) |
compat/options: no need to heap-alloc here
-rw-r--r-- | opentrack-compat/options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack-compat/options.cpp b/opentrack-compat/options.cpp index 91cd3664..48cc514b 100644 --- a/opentrack-compat/options.cpp +++ b/opentrack-compat/options.cpp @@ -7,8 +7,8 @@ namespace detail { OPENTRACK_COMPAT_EXPORT opt_singleton& singleton() { - static auto ret = std::make_shared<opt_singleton>(); - return *ret; + static opt_singleton ret; + return ret; } } |