diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-11 21:02:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-12 11:19:46 +0000 |
commit | 6a9848426be59fa4e14d1db10f04b9262f426233 (patch) | |
tree | 54d77e081624af07e762d181b15339a8cc8132c6 /sw | |
parent | 226e367ff93542d82975d6ccd34448f68acf8035 (diff) |
kind of thing coverity will warn about
Change-Id: I2681b99c913b15c632dd4c9ec84922fa282692d7
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 129626425fd5..5c4ee6e223b6 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -2276,10 +2276,10 @@ void SwContentTree::Notify(SfxBroadcaster & rBC, SfxHint const& rHint) SfxViewEventHint const*const pVEHint( dynamic_cast<SfxViewEventHint const*>(&rHint)); - if (pActiveShell - && pVEHint && pVEHint->GetEventName() == "OnViewClosed" - && dynamic_cast<SwXTextView *>(pVEHint->GetController().get()) - ->GetView() == &pActiveShell->GetView()) + SwXTextView* pDyingShell = NULL; + if (pActiveShell && pVEHint && pVEHint->GetEventName() == "OnViewClosed") + pDyingShell = dynamic_cast<SwXTextView*>(pVEHint->GetController().get()); + if (pDyingShell && pDyingShell->GetView() == &pActiveShell->GetView()) { SetActiveShell(0); // our view is dying, clear our pointers to it } |