From 5b286a7132608088af5c622ca921a4a887ece88d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 21 Mar 2015 21:31:04 +0000 Subject: coverity#1291170 unchecked dynamic_cast Change-Id: I6d141fcaff4877cfee6400f104d3c41fd967d6f3 --- sd/qa/unit/import-tests.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sd') 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(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(); } -- cgit