cppcheck: redundantAssignment
Change-Id: I43ae91f0b91479fb279b0efbeb0cb4195e7b083a
This commit is contained in:
@@ -3085,9 +3085,8 @@ void SfxViewFrame::ChildWindowExecute( SfxRequest &rReq )
|
||||
return;
|
||||
Reference < XFrame > xFrame = GetFrame().GetTopFrame().GetFrameInterface();
|
||||
Reference < XFrame > xBeamer( xFrame->findFrame( "_beamer", FrameSearchFlag::CHILDREN ) );
|
||||
sal_Bool bShow = sal_False;
|
||||
sal_Bool bHasChild = xBeamer.is();
|
||||
bShow = pShowItem ? pShowItem->GetValue() : !bHasChild;
|
||||
sal_Bool bShow = pShowItem ? pShowItem->GetValue() : !bHasChild;
|
||||
if ( pShowItem )
|
||||
{
|
||||
if( bShow == bHasChild )
|
||||
@@ -3127,9 +3126,8 @@ void SfxViewFrame::ChildWindowExecute( SfxRequest &rReq )
|
||||
return;
|
||||
}
|
||||
|
||||
sal_Bool bShow = sal_False;
|
||||
sal_Bool bHasChild = HasChildWindow(nSID);
|
||||
bShow = pShowItem ? pShowItem->GetValue() : !bHasChild;
|
||||
sal_Bool bShow = pShowItem ? pShowItem->GetValue() : !bHasChild;
|
||||
|
||||
// Perform action.
|
||||
if ( !pShowItem || bShow != bHasChild )
|
||||
|
Reference in New Issue
Block a user