summaryrefslogtreecommitdiffstats
path: root/sdext/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-03 15:01:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-03 16:47:42 +0100
commite36a36bdc4a081c4b5b1a427ce626eb90acbcc82 (patch)
treef08aaed85ed8756241db18d6796911f8c9aba401 /sdext/source
parentTranslate German comment (diff)
downloadcore-e36a36bdc4a081c4b5b1a427ce626eb90acbcc82.tar.gz
core-e36a36bdc4a081c4b5b1a427ce626eb90acbcc82.zip
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')
-rw-r--r--sdext/source/presenter/PresenterTimer.cxx2
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;