diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-06-13 20:36:41 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-06-13 20:36:56 +0200 |
commit | 14ed0d1629daf8c53783c2c2230480de56a0f97a (patch) | |
tree | 9a84b9ba5134929d67170437e52750d6b336b6d7 /framework/source/layoutmanager | |
parent | 03af6cb62986cc99995a6bdc5f1fb9a99ff4b7fe (diff) |
cppcheck: fix redundant assignments
Change-Id: I3fb495c6e18b3cb5e9d4beca4212d4aa8097401e
Diffstat (limited to 'framework/source/layoutmanager')
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 8bb3f0f29705..9da074e95aec 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -2748,11 +2748,9 @@ void SAL_CALL LayoutManager::windowShown( const lang::EventObject& aEvent ) thro Reference< XInterface > xIfac( xContainerWindow, UNO_QUERY ); if ( xIfac == aEvent.Source ) { - bool bSetVisible = false; - WriteGuard aWriteLock( m_aLock ); m_bParentWindowVisible = true; - bSetVisible = ( m_bParentWindowVisible != bParentWindowVisible ); + bool bSetVisible = ( m_bParentWindowVisible != bParentWindowVisible ); aWriteLock.unlock(); if ( bSetVisible ) @@ -2770,11 +2768,9 @@ void SAL_CALL LayoutManager::windowHidden( const lang::EventObject& aEvent ) thr Reference< XInterface > xIfac( xContainerWindow, UNO_QUERY ); if ( xIfac == aEvent.Source ) { - bool bSetInvisible = false; - WriteGuard aWriteLock( m_aLock ); m_bParentWindowVisible = false; - bSetInvisible = ( m_bParentWindowVisible != bParentWindowVisible ); + bool bSetInvisible = ( m_bParentWindowVisible != bParentWindowVisible ); aWriteLock.unlock(); if ( bSetInvisible ) |