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