coverity#1158104 Unchecked dynamic_cast

Change-Id: I725d1adc028597123dec10c2de6c609211c8e7a4
This commit is contained in:
Caolán McNamara
2014-02-07 11:38:05 +00:00
parent ade3a42423
commit 38e7e67248

View File

@@ -275,6 +275,7 @@ void SdFiltersTest::testN828390_3()
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();
std::vector<EECharAttrib> rLst; std::vector<EECharAttrib> rLst;
aEdit.GetCharAttribs(1, rLst); aEdit.GetCharAttribs(1, rLst);