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

kind of thing coverity will warn about

Change-Id: I2681b99c913b15c632dd4c9ec84922fa282692d7
üst 226e367f
......@@ -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
}
......
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