summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 10:30:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 14:48:55 +0100
commite16991f032e1f8cef0c7d4e3731cdd998efb11da (patch)
tree8a9c2cd45ae38df9c94472556e993b63d4702e30 /sfx2/source/view
parent5cb059e28b652e524534c418b85f4575a42095b3 (diff)
coverity#1242857 Unused value
Change-Id: I015952c56ea686f307b0b5ccaad29ace9ebfa301
Diffstat (limited to 'sfx2/source/view')
-rw-r--r--sfx2/source/view/frame.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx
index 9ea3800f7c11..2fd824cc147e 100644
--- a/sfx2/source/view/frame.cxx
+++ b/sfx2/source/view/frame.cxx
@@ -155,7 +155,6 @@ bool SfxFrame::DoClose()
bool SfxFrame::DoClose_Impl()
{
- bool bRet = true;
SfxBindings* pBindings = NULL;
if ( pImp->pCurrentViewFrame )
pBindings = &pImp->pCurrentViewFrame->GetBindings();
@@ -165,12 +164,12 @@ bool SfxFrame::DoClose_Impl()
pImp->pWorkWin->DeleteControllers_Impl();
if ( pImp->pCurrentViewFrame )
- bRet = pImp->pCurrentViewFrame->Close();
+ pImp->pCurrentViewFrame->Close();
if ( pImp->bOwnsBindings )
DELETEZ( pBindings );
- bRet = Close();
+ bool bRet = Close();
DBG_ASSERT( bRet, "Impossible state: frame closes, but controller refuses!");
return bRet;
}