diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-21 21:31:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-21 21:31:04 +0000 |
commit | 5b286a7132608088af5c622ca921a4a887ece88d (patch) | |
tree | 3c5aede72f93f7e34f8a979c82de25e4b9cc64a1 /sd | |
parent | 6c76ba2437dad6afb0d760922eba7814418bda1e (diff) |
coverity#1291170 unchecked dynamic_cast
Change-Id: I6d141fcaff4877cfee6400f104d3c41fd967d6f3
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 5d6885920193..cdfdd30da9a3 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -1133,6 +1133,7 @@ void SdImportTest::testBulletSuffix() CPPUNIT_ASSERT_MESSAGE( "no text object", pTxtObj != NULL); const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject(); const SvxNumBulletItem *pNumFmt = dynamic_cast<const SvxNumBulletItem *>(aEdit.GetParaAttribs(1).GetItem(EE_PARA_NUMBULLET)); + CPPUNIT_ASSERT(pNumFmt); CPPUNIT_ASSERT_EQUAL_MESSAGE( "Bullet's suffix is wrong!", OUString(pNumFmt->GetNumRule()->GetLevel(0).GetSuffix()), OUString("") ); xDocShRef->DoClose(); } |