diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-12 19:07:13 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-15 06:43:25 +0000 |
commit | aba7f4c0a3527ce0cee6e18385cf69778052402d (patch) | |
tree | c72f34df1ee355df395ed7f325f8d5cf66e0f0d5 /embeddedobj/source/general | |
parent | 68b8f008c8893b6b7d2314c21679bf2dbcd1b4e5 (diff) |
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I026999d6e995185c42df6770a1a700094540d08a
Reviewed-on: https://gerrit.libreoffice.org/13454
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'embeddedobj/source/general')
-rw-r--r-- | embeddedobj/source/general/docholder.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx index 9bb8581e9ea2..b720f0e9a286 100644 --- a/embeddedobj/source/general/docholder.cxx +++ b/embeddedobj/source/general/docholder.cxx @@ -695,11 +695,11 @@ bool DocumentHolder::ShowUI( const uno::Reference< ::com::sun::star::frame::XLay } catch( const uno::Exception& ){} - // make sure that lock state of LM is correct even if an exception is thrown in between - bool bUnlock = false; - bool bLock = false; if ( xOwnLM.is() && xDocAreaAcc.is() ) { + // make sure that lock state of LM is correct even if an exception is thrown in between + bool bUnlock = false; + bool bLock = false; try { // take over the control over the containers window |