diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 11:37:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 12:24:44 +0000 |
commit | ade3a42423085bdeda921c175f5cd0b6aa876c43 (patch) | |
tree | 8d51a85e75156c30f8b9c50c98ce00bb5eebcd9a /sd/qa | |
parent | e04eee9a5954a381eecfbcb86584c61f7adcff62 (diff) |
coverity#1158105 Unchecked dynamic_cast
Change-Id: Ia908b5cc3f7d18e376496eacd71a2e55f75bf8b3
Diffstat (limited to 'sd/qa')
-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 a9065831869f..f7d3b4f13d1e 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -311,6 +311,7 @@ void SdFiltersTest::testN828390_4() std::vector<EECharAttrib> rLst; SdrObject *pObj = pPage->GetObj(0); SdrTextObj *pTxtObj = dynamic_cast<SdrTextObj *>( pObj ); + CPPUNIT_ASSERT( pTxtObj ); const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject(); aEdit.GetCharAttribs(1, rLst); for( std::vector<EECharAttrib>::reverse_iterator it = rLst.rbegin(); it!=rLst.rend(); ++it) |