Kaydet (Commit) e16991f0 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242857 Unused value

Change-Id: I015952c56ea686f307b0b5ccaad29ace9ebfa301
üst 5cb059e2
...@@ -155,7 +155,6 @@ bool SfxFrame::DoClose() ...@@ -155,7 +155,6 @@ bool SfxFrame::DoClose()
bool SfxFrame::DoClose_Impl() bool SfxFrame::DoClose_Impl()
{ {
bool bRet = true;
SfxBindings* pBindings = NULL; SfxBindings* pBindings = NULL;
if ( pImp->pCurrentViewFrame ) if ( pImp->pCurrentViewFrame )
pBindings = &pImp->pCurrentViewFrame->GetBindings(); pBindings = &pImp->pCurrentViewFrame->GetBindings();
...@@ -165,12 +164,12 @@ bool SfxFrame::DoClose_Impl() ...@@ -165,12 +164,12 @@ bool SfxFrame::DoClose_Impl()
pImp->pWorkWin->DeleteControllers_Impl(); pImp->pWorkWin->DeleteControllers_Impl();
if ( pImp->pCurrentViewFrame ) if ( pImp->pCurrentViewFrame )
bRet = pImp->pCurrentViewFrame->Close(); pImp->pCurrentViewFrame->Close();
if ( pImp->bOwnsBindings ) if ( pImp->bOwnsBindings )
DELETEZ( pBindings ); DELETEZ( pBindings );
bRet = Close(); bool bRet = Close();
DBG_ASSERT( bRet, "Impossible state: frame closes, but controller refuses!"); DBG_ASSERT( bRet, "Impossible state: frame closes, but controller refuses!");
return bRet; return bRet;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment