diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-29 16:50:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-29 18:12:08 +0000 |
commit | e67a148d52fc565b00bd6d101cf9d6e0c67a95b4 (patch) | |
tree | 950863c3e9d6b0dd61d59cb239c017583b41b503 /sw/source | |
parent | 0ca2b5d566707730085a929376fcf6c4a40ca728 (diff) |
coverity#704379 Logically dead code
bNotify is set to true in only one place, and bDone is set to true
and the only use of bNotify is inside a !bDone block so it can
only be false there
Change-Id: I05b09d5e1e1406e1268f2e97b0f50db36c391727
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/uibase/shells/drwbassh.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/core/uibase/shells/drwbassh.cxx b/sw/source/core/uibase/shells/drwbassh.cxx index ef3aef3517aa..71ce949f9df6 100644 --- a/sw/source/core/uibase/shells/drwbassh.cxx +++ b/sw/source/core/uibase/shells/drwbassh.cxx @@ -120,7 +120,6 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq) sal_Bool bAlignPossible = pSh->IsAlignPossible(); sal_Bool bTopParam = sal_True, bBottomParam = sal_True; - bool bNotify = false; bool bDone = false; SfxBindings& rBind = GetView().GetViewFrame()->GetBindings(); @@ -400,7 +399,6 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq) pSh->LeaveSelFrmMode(); // #105852# FME } - bNotify = true; } break; @@ -602,9 +600,6 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq) pSh->SetModified(); else if (bChanged) pSdrView->GetModel()->SetChanged(true); - // 40220: After Delete from DrawObjecs over the API GPF through self-destruction - if(bNotify) - GetView().AttrChangedNotify(pSh); // Shell switch if applicable... } } |