From a8e6f0bea0e8bc028ee64d0b4d9046e52de94eda Mon Sep 17 00:00:00 2001 From: Radu Ioan Date: Sat, 14 Feb 2015 00:31:54 +0200 Subject: tdf#39440 - cppcheck cleanliness Fixed some cppcheck defects Change-Id: I25fd6aba9d76df98d20b9a1bb4c9d3c1bf6f84bb Reviewed-on: https://gerrit.libreoffice.org/14487 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- basic/source/runtime/basrdll.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'basic/source/runtime/basrdll.cxx') diff --git a/basic/source/runtime/basrdll.cxx b/basic/source/runtime/basrdll.cxx index 85fe73690eed..a1ad75ab7191 100644 --- a/basic/source/runtime/basrdll.cxx +++ b/basic/source/runtime/basrdll.cxx @@ -86,14 +86,13 @@ void BasicDLL::SetDebugMode( bool bDebugMode ) void BasicDLL::BasicBreak() { - // bJustStopping: if there's someone pressing STOP like crazy umpteen times, - // but the Basic doesn't stop early enough, the box might appear more often... - static bool bJustStopping = false; - BasicDLL* pThis = BASIC_DLL(); DBG_ASSERT( pThis, "BasicDLL::EnableBreak: No instance yet!" ); if ( pThis ) { + // bJustStopping: if there's someone pressing STOP like crazy umpteen times, + // but the Basic doesn't stop early enough, the box might appear more often... + static bool bJustStopping = false; if (StarBASIC::IsRunning() && !bJustStopping && (pThis->m_xImpl->bBreakEnabled || pThis->m_xImpl->bDebugMode)) { -- cgit