summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-01 21:06:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 09:14:50 +0100
commitf63e2ac112a1a94392f7d4a8922e40f9fd951daf (patch)
tree1057e03c6259a0d6ab2d3cdf27d07184881035c7 /sc/source
parent5c7e5d28019406a9e72c58050a85ff51529f8341 (diff)
coverity#735819 Unchecked dynamic_cast
Change-Id: I4e8834a2cdc979757ae6d37730a89fc20bcc6b26
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/tabview3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index ba35eb87d86d..028a5ff6cce9 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -1742,9 +1742,9 @@ void ScTabView::SetTabNo( SCTAB nTab, bool bNew, bool bExtendSelection, bool bSa
sal_uInt16 nCurRefDlgId=pScMod->GetCurRefDlgId();
SfxViewFrame* pViewFrm = aViewData.GetViewShell()->GetViewFrame();
SfxChildWindow* pChildWnd = pViewFrm->GetChildWindow( nCurRefDlgId );
- if ( pChildWnd )
+ IAnyRefDialog* pRefDlg = pChildWnd ? dynamic_cast<IAnyRefDialog*>(pChildWnd->GetWindow()) : NULL;
+ if (pRefDlg)
{
- IAnyRefDialog* pRefDlg = dynamic_cast<IAnyRefDialog*>(pChildWnd->GetWindow());
pRefDlg->ViewShellChanged();
}
}