From 778e88e86384e22852eb412c4f9af4494b2f0c3a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 10 Feb 2014 10:35:50 +0000 Subject: coverity#1130365 Unchecked dynamic_cast Change-Id: I1298d220c42aa7282cdc6c256727620ee1a6f749 --- sw/qa/extras/odfimport/odfimport.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sw/qa/extras/odfimport/odfimport.cxx') diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx index 224ed9dc2ee7..17103151c763 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx @@ -391,6 +391,7 @@ DECLARE_ODFIMPORT_TEST(testFdo69862, "fdo69862.odt") { // The test doc is special in that it starts with a table and it also has a footnote. SwXTextDocument* pTxtDoc = dynamic_cast(mxComponent.get()); + CPPUNIT_ASSERT(pTxtDoc); SwWrtShell* pWrtShell = pTxtDoc->GetDocShell()->GetWrtShell(); SwShellCrsr* pShellCrsr = pWrtShell->getShellCrsr(false); -- cgit v1.2.3