diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 11:38:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 12:24:44 +0000 |
commit | 38e7e67248f0b477b4b1a6614e10dfca60a8a5cd (patch) | |
tree | 7f14e473f14b2fc7955b8242c242d9847a3e1c38 | |
parent | ade3a42423085bdeda921c175f5cd0b6aa876c43 (diff) |
coverity#1158104 Unchecked dynamic_cast
Change-Id: I725d1adc028597123dec10c2de6c609211c8e7a4
-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 f7d3b4f13d1e..8f40354ea7aa 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -275,6 +275,7 @@ void SdFiltersTest::testN828390_3() SdrObject *pObj = pPage->GetObj(0); SdrTextObj *pTxtObj = dynamic_cast<SdrTextObj *>( pObj ); + CPPUNIT_ASSERT( pTxtObj ); const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject(); std::vector<EECharAttrib> rLst; aEdit.GetCharAttribs(1, rLst); |