summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/options.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-22 15:13:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-22 15:55:43 +0100
commite44b2853196565ebd22eb1e27109e5e54e77ed15 (patch)
tree869c269bb79a657c6d670e5fcc8ff198a818df66 /opentrack-compat/options.cpp
parent7075c9a3612f39edf4f068705f7a1ebc4ad0614e (diff)
compat/options: no need to heap-alloc here
Diffstat (limited to 'opentrack-compat/options.cpp')
-rw-r--r--opentrack-compat/options.cpp4
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;
}
}