diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-12-08 18:57:27 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-12-08 23:14:49 +0100 |
commit | 2ec698b43313c18522b45b28895cd5688a84a700 (patch) | |
tree | 13fe01cd548f8820e32435adbe1d346fd164ff34 /framework | |
parent | b45cbaa2ea50b2b6f28e78888bbae121deb8558c (diff) |
cppcheck: fix some reports
variableScope reports in comphelper/drawinglayer/editeng
+filter/framework/l10ntools
Change-Id: I4575428773e8b9b3efedabb44fdcd6d8175ac46a
Reviewed-on: https://gerrit.libreoffice.org/46116
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/frame.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index 17efc5d0386a..04441dc5c84c 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -2570,7 +2570,6 @@ void SAL_CALL Frame::windowClosing( const css::lang::EventObject& ) *//*-*****************************************************************************************************/ void SAL_CALL Frame::windowShown( const css::lang::EventObject& ) { - static bool bFirstVisibleTask = true; static osl::Mutex aFirstVisibleLock; /* SAFE { */ @@ -2584,6 +2583,7 @@ void SAL_CALL Frame::windowShown( const css::lang::EventObject& ) if (xDesktopCheck.is()) { + static bool bFirstVisibleTask = true; osl::ClearableMutexGuard aGuard(aFirstVisibleLock); bool bMustBeTriggered = bFirstVisibleTask; bFirstVisibleTask = false; |