coverity#704779 Unchecked dynamic_cast
Change-Id: Ida8bdc0930142ecf602b5aef4414cc6302bfa18b
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user