diff options
author | Arnold Dumas <arnold@dumas.at> | 2016-02-15 22:32:15 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-16 12:47:55 +0000 |
commit | fd3cb8d8222113cbc7bf472060ac77233706ea1f (patch) | |
tree | 18101abe775445d30e6c0db6d131b4dc280bee55 /framework/source | |
parent | ab199e4748b45384602479c735dbac538e714d34 (diff) |
tdf#39440: reduce scope of local variables
Change-Id: I6ba411d2e07240821518281996d543f71acf3259
Reviewed-on: https://gerrit.libreoffice.org/22378
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 163bbbfc69cc..c89a5775460e 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -485,14 +485,14 @@ bool LayoutManager::readWindowStateData( const OUString& aName, UIElement& rElem GlobalSettings* &rGlobalSettings, bool &bInGlobalSettings, const Reference< XComponentContext > &rComponentContext ) { - bool bGetSettingsState( false ); - SolarMutexResettableGuard aWriteLock; Reference< XNameAccess > xPersistentWindowState( rPersistentWindowState ); aWriteLock.clear(); if ( xPersistentWindowState.is() ) { + bool bGetSettingsState( false ); + aWriteLock.reset(); bool bGlobalSettings( bInGlobalSettings ); GlobalSettings* pGlobalSettings( nullptr ); |