Kaydet (Commit) 9af87824 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704779 Unchecked dynamic_cast

Change-Id: Ida8bdc0930142ecf602b5aef4414cc6302bfa18b
üst 4ee265ee
...@@ -578,7 +578,8 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < : ...@@ -578,7 +578,8 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
const sal_Int32 nLength = rSequence.getLength(); const sal_Int32 nLength = rSequence.getLength();
if (nLength) 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; bool bBool = false;
sal_Int32 nInt32 = 0; sal_Int32 nInt32 = 0;
......
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