From 359e68815db3354fff974993e2bf2449d9d722fc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 21 Jan 2017 15:18:44 +0000 Subject: coverity#1399028 Unchecked dynamic_cast Change-Id: I17b566a13b0822e39cb5852150f407c9d9c84305 --- sw/qa/extras/ooxmlexport/ooxmlexport3.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx index e5e4880556c4..3380ad684bd4 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx @@ -113,7 +113,8 @@ DECLARE_OOXMLEXPORT_TEST(testFdo68787, "fdo68787.docx") DECLARE_OOXMLEXPORT_TEST(testTdf92470_footnoteRestart, "tdf92470_footnoteRestart.docx") { - SwXTextDocument* pTextDoc = dynamic_cast(mxComponent.get()); + SwXTextDocument* pTextDoc = dynamic_cast(mxComponent.get()); + CPPUNIT_ASSERT( pTextDoc ); SwDoc* pDoc = pTextDoc->GetDocShell()->GetDoc(); CPPUNIT_ASSERT( pDoc ); CPPUNIT_ASSERT_EQUAL_MESSAGE( "Footnote doesn't restart every Page", FTNNUM_PAGE, pDoc->GetFootnoteInfo().eNum ); -- cgit