coverity#1158103 Unchecked dynamic_cast

Change-Id: Id08897c1dcb9df59458a29d5d20d57cd6a9039f8
This commit is contained in:
Caolán McNamara 2014-02-07 11:38:36 +00:00
parent 38e7e67248
commit 0d1d6aa26e

View File

@ -255,6 +255,7 @@ void SdFiltersTest::testN828390_2()
SdrObject *pObj = pPage->GetObj(0); SdrObject *pObj = pPage->GetObj(0);
SdrTextObj *pTxtObj = dynamic_cast<SdrTextObj *>( pObj ); SdrTextObj *pTxtObj = dynamic_cast<SdrTextObj *>( pObj );
CPPUNIT_ASSERT( pTxtObj );
const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject(); const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject();
CPPUNIT_ASSERT(aEdit.GetText(0) == OUString("Linux ")); CPPUNIT_ASSERT(aEdit.GetText(0) == OUString("Linux "));
CPPUNIT_ASSERT(aEdit.GetText(1) == OUString("Standard Platform")); CPPUNIT_ASSERT(aEdit.GetText(1) == OUString("Standard Platform"));