summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-09-27 23:18:21 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-09-27 23:18:21 +0200
commitbf5db198e19898fbae2f27c3a9f84c2e7f24e00f (patch)
tree578f7b411cc57ce299d600a5af0e5841d02db190 /sfx2
parent97da89451c1de4a85a8f02b496441cb712652e5a (diff)
cppcheck: redundantAssignment
Change-Id: I43ae91f0b91479fb279b0efbeb0cb4195e7b083a
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 4c38e00d156b..141406e2b9b3 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -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 )