diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 11:38:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 12:24:45 +0000 |
commit | 0d1d6aa26e7987af99ca3dff9dde18a78879849c (patch) | |
tree | a90acdf4b46bf2046cac22cc48ca725c1b61d4c9 /sd | |
parent | 38e7e67248f0b477b4b1a6614e10dfca60a8a5cd (diff) |
coverity#1158103 Unchecked dynamic_cast
Change-Id: Id08897c1dcb9df59458a29d5d20d57cd6a9039f8
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/import-tests.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index 8f40354ea7aa..c6e4239bfc8d 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -255,6 +255,7 @@ void SdFiltersTest::testN828390_2() SdrObject *pObj = pPage->GetObj(0); SdrTextObj *pTxtObj = dynamic_cast<SdrTextObj *>( pObj ); + CPPUNIT_ASSERT( pTxtObj ); const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject(); CPPUNIT_ASSERT(aEdit.GetText(0) == OUString("Linux ")); CPPUNIT_ASSERT(aEdit.GetText(1) == OUString("Standard Platform")); |