cppcheck: redundantAssignment

Change-Id: I43ae91f0b91479fb279b0efbeb0cb4195e7b083a
This commit is contained in:
Julien Nabet
2013-09-27 23:18:21 +02:00
parent 97da89451c
commit bf5db198e1

View File

@@ -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 )