From 0d1d6aa26e7987af99ca3dff9dde18a78879849c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 7 Feb 2014 11:38:36 +0000 Subject: [PATCH] coverity#1158103 Unchecked dynamic_cast Change-Id: Id08897c1dcb9df59458a29d5d20d57cd6a9039f8 --- sd/qa/unit/import-tests.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index 8f40354ea7aa..c6e4239bfc8d 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -255,6 +255,7 @@ void SdFiltersTest::testN828390_2() SdrObject *pObj = pPage->GetObj(0); SdrTextObj *pTxtObj = dynamic_cast( pObj ); + CPPUNIT_ASSERT( pTxtObj ); const EditTextObject& aEdit = pTxtObj->GetOutlinerParaObject()->GetTextObject(); CPPUNIT_ASSERT(aEdit.GetText(0) == OUString("Linux ")); CPPUNIT_ASSERT(aEdit.GetText(1) == OUString("Standard Platform"));