Kaydet (Commit) 5c519207 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#704690 Unchecked dynamic cast

Change-Id: Id392c07f27f8f7d8b05b0604ccf7b9180a6eb6a8
üst 7adc9371
...@@ -1907,7 +1907,11 @@ void ScModule::EndReference() ...@@ -1907,7 +1907,11 @@ void ScModule::EndReference()
if ( pChildWnd ) if ( pChildWnd )
{ {
IAnyRefDialog* pRefDlg = dynamic_cast<IAnyRefDialog*>(pChildWnd->GetWindow()); IAnyRefDialog* pRefDlg = dynamic_cast<IAnyRefDialog*>(pChildWnd->GetWindow());
pRefDlg->SetActive(); assert(pRefDlg);
if(pRefDlg)
{
pRefDlg->SetActive();
}
} }
else else
pModalDlg->SetActive(); pModalDlg->SetActive();
......
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