summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source')
-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;
}