From e44b2853196565ebd22eb1e27109e5e54e77ed15 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 22 Nov 2015 15:13:47 +0100 Subject: compat/options: no need to heap-alloc here --- opentrack-compat/options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opentrack-compat/options.cpp') 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(); - return *ret; + static opt_singleton ret; + return ret; } } -- cgit v1.2.3