From dd2d4263459c12b9ca65a23711f5f77fe34fef1b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 28 Aug 2017 21:19:51 -0600 Subject: use Q_GLOBAL_STATIC In an attempt to resolve T6890. --- common/log.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common') diff --git a/common/log.cpp b/common/log.cpp index 5dfb872..3edc89a 100644 --- a/common/log.cpp +++ b/common/log.cpp @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -267,7 +266,7 @@ public: QSet mDebugAreas; }; -static auto sDebugAreaCollector = std::unique_ptr(new DebugAreaCollector); +Q_GLOBAL_STATIC(DebugAreaCollector, sDebugAreaCollector); QSet Sink::Log::debugAreas() { -- cgit v1.2.3