summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-07 11:39:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-07 12:24:45 +0000
commitc72f099d90353460a197e8308256e5aac2fa8383 (patch)
tree5f57f58f34a9b68bb1a6e7ba47387988b5c42486 /sd
parent0d1d6aa26e7987af99ca3dff9dde18a78879849c (diff)
coverity#1158102 Unchecked dynamic_cast
Change-Id: I806e1c4cd768aec0bb5d56449a1692226f20895e
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/import-tests.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx
index c6e4239bfc8d..2698b836995c 100644
--- a/sd/qa/unit/import-tests.cxx
+++ b/sd/qa/unit/import-tests.cxx
@@ -408,6 +408,7 @@ void SdFiltersTest::testFdo72998()
CPPUNIT_ASSERT_MESSAGE( "no page", pPage != NULL );
{
SdrObjCustomShape *pObj = dynamic_cast<SdrObjCustomShape *>(pPage->GetObj(2));
+ CPPUNIT_ASSERT( pObj );
const SdrCustomShapeGeometryItem& rGeometryItem = (const SdrCustomShapeGeometryItem&)pObj->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY );
CPPUNIT_ASSERT_MESSAGE( "not a custom shape", pObj );
const ::com::sun::star::uno::Any* pViewBox = ((SdrCustomShapeGeometryItem&)rGeometryItem).GetPropertyValueByName( OUString( "ViewBox" ) );