diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-28 21:19:51 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-08-28 21:19:51 -0600 |
commit | dd2d4263459c12b9ca65a23711f5f77fe34fef1b (patch) | |
tree | 910b85954f130d15a0264a09eb095e3f39d4d9d9 | |
parent | 1ba34f8b16cd06a74ff96dfae803ce4b0521652b (diff) | |
download | sink-dd2d4263459c12b9ca65a23711f5f77fe34fef1b.tar.gz sink-dd2d4263459c12b9ca65a23711f5f77fe34fef1b.zip |
use Q_GLOBAL_STATIC
In an attempt to resolve T6890.
-rw-r--r-- | common/log.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 @@ | |||
10 | #include <QMutexLocker> | 10 | #include <QMutexLocker> |
11 | #include <iostream> | 11 | #include <iostream> |
12 | #include <unistd.h> | 12 | #include <unistd.h> |
13 | #include <memory> | ||
14 | #include <atomic> | 13 | #include <atomic> |
15 | #include <definitions.h> | 14 | #include <definitions.h> |
16 | #include <QThreadStorage> | 15 | #include <QThreadStorage> |
@@ -267,7 +266,7 @@ public: | |||
267 | QSet<QString> mDebugAreas; | 266 | QSet<QString> mDebugAreas; |
268 | }; | 267 | }; |
269 | 268 | ||
270 | static auto sDebugAreaCollector = std::unique_ptr<DebugAreaCollector>(new DebugAreaCollector); | 269 | Q_GLOBAL_STATIC(DebugAreaCollector, sDebugAreaCollector); |
271 | 270 | ||
272 | QSet<QString> Sink::Log::debugAreas() | 271 | QSet<QString> Sink::Log::debugAreas() |
273 | { | 272 | { |