diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-03 15:01:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-03 16:47:42 +0100 |
commit | e36a36bdc4a081c4b5b1a427ce626eb90acbcc82 (patch) | |
tree | f08aaed85ed8756241db18d6796911f8c9aba401 /sdext/source/presenter | |
parent | ca58ddb012b27da4b11fc509c3cbc2e9cb2c0ec2 (diff) |
Silence loplugin:unreffun with --disable-assert-always-abort
Change-Id: I1b5a7a6aa2436aa5b8297d5de172035cff3f1306
Reviewed-on: https://gerrit.libreoffice.org/47318
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sdext/source/presenter')
-rw-r--r-- | sdext/source/presenter/PresenterTimer.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sdext/source/presenter/PresenterTimer.cxx b/sdext/source/presenter/PresenterTimer.cxx index eb85119c6bc6..3bd1f9ab9977 100644 --- a/sdext/source/presenter/PresenterTimer.cxx +++ b/sdext/source/presenter/PresenterTimer.cxx @@ -96,7 +96,9 @@ public: const TimeValue& rTimeValue); static void NotifyTermination(); +#if !defined NDEBUG static bool HasInstance() { return mpInstance != nullptr; } +#endif private: static std::shared_ptr<TimerScheduler> mpInstance; |