diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 10:26:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-06 11:32:53 +0100 |
commit | 9af87824936f2334cc6420768e81a624f36a1dc8 (patch) | |
tree | 8fce3595e2209ef86a89a718ec7a44ba7c872c57 /sd/source | |
parent | 4ee265eeaeb268504233d6c130b5944ca8d8887e (diff) |
coverity#704779 Unchecked dynamic_cast
Change-Id: Ida8bdc0930142ecf602b5aef4414cc6302bfa18b
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/frmview.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx index 3121d6478d5a..d780e1db0f34 100644 --- a/sd/source/ui/view/frmview.cxx +++ b/sd/source/ui/view/frmview.cxx @@ -578,7 +578,8 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < : const sal_Int32 nLength = rSequence.getLength(); if (nLength) { - const bool bImpress = dynamic_cast< SdDrawDocument* >(GetModel())->GetDocumentType() == DOCUMENT_TYPE_IMPRESS; + SdDrawDocument* pDrawDocument = dynamic_cast<SdDrawDocument*>(GetModel()); + const bool bImpress = pDrawDocument && pDrawDocument->GetDocumentType() == DOCUMENT_TYPE_IMPRESS; bool bBool = false; sal_Int32 nInt32 = 0; |