From 74dd647e764fada2bb52fb3544d20ec019ad2e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 10 Feb 2014 10:36:41 +0000 Subject: [PATCH] coverity#1130363 Unchecked dynamic_cast Change-Id: Ibc1e6f5e7c7f2a0546847194de5f77ab51b2d578 --- sw/qa/extras/odfimport/odfimport.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx index f534a09d5128..0a79820768fa 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx @@ -366,6 +366,7 @@ DECLARE_ODFIMPORT_TEST(testFdo37606, "fdo37606.odt") DECLARE_ODFIMPORT_TEST(testFdo37606Copy, "fdo37606.odt") { SwXTextDocument* pTxtDoc = dynamic_cast(mxComponent.get()); + CPPUNIT_ASSERT(pTxtDoc); SwWrtShell* pWrtShell = pTxtDoc->GetDocShell()->GetWrtShell(); // Ctrl-A pWrtShell->SelAll();