cppcheck: fix redundant assignments
Change-Id: I3fb495c6e18b3cb5e9d4beca4212d4aa8097401e
This commit is contained in:
@@ -2748,11 +2748,9 @@ void SAL_CALL LayoutManager::windowShown( const lang::EventObject& aEvent ) thro
|
|||||||
Reference< XInterface > xIfac( xContainerWindow, UNO_QUERY );
|
Reference< XInterface > xIfac( xContainerWindow, UNO_QUERY );
|
||||||
if ( xIfac == aEvent.Source )
|
if ( xIfac == aEvent.Source )
|
||||||
{
|
{
|
||||||
bool bSetVisible = false;
|
|
||||||
|
|
||||||
WriteGuard aWriteLock( m_aLock );
|
WriteGuard aWriteLock( m_aLock );
|
||||||
m_bParentWindowVisible = true;
|
m_bParentWindowVisible = true;
|
||||||
bSetVisible = ( m_bParentWindowVisible != bParentWindowVisible );
|
bool bSetVisible = ( m_bParentWindowVisible != bParentWindowVisible );
|
||||||
aWriteLock.unlock();
|
aWriteLock.unlock();
|
||||||
|
|
||||||
if ( bSetVisible )
|
if ( bSetVisible )
|
||||||
@@ -2770,11 +2768,9 @@ void SAL_CALL LayoutManager::windowHidden( const lang::EventObject& aEvent ) thr
|
|||||||
Reference< XInterface > xIfac( xContainerWindow, UNO_QUERY );
|
Reference< XInterface > xIfac( xContainerWindow, UNO_QUERY );
|
||||||
if ( xIfac == aEvent.Source )
|
if ( xIfac == aEvent.Source )
|
||||||
{
|
{
|
||||||
bool bSetInvisible = false;
|
|
||||||
|
|
||||||
WriteGuard aWriteLock( m_aLock );
|
WriteGuard aWriteLock( m_aLock );
|
||||||
m_bParentWindowVisible = false;
|
m_bParentWindowVisible = false;
|
||||||
bSetInvisible = ( m_bParentWindowVisible != bParentWindowVisible );
|
bool bSetInvisible = ( m_bParentWindowVisible != bParentWindowVisible );
|
||||||
aWriteLock.unlock();
|
aWriteLock.unlock();
|
||||||
|
|
||||||
if ( bSetInvisible )
|
if ( bSetInvisible )
|
||||||
|
Reference in New Issue
Block a user