summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfimport/odfimport.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-10 10:36:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-10 11:21:10 +0000
commitc02e3b47affb078a59cf28abf20ea6b050549574 (patch)
treeced4ca658685a1c2d01f6dfe46f82eab65c8cf96 /sw/qa/extras/odfimport/odfimport.cxx
parent778e88e86384e22852eb412c4f9af4494b2f0c3a (diff)
coverity#1130364 Unchecked dynamic_cast
Change-Id: Ic8eab1630b79b49b67646eea52b26e0f24fd2d49
Diffstat (limited to 'sw/qa/extras/odfimport/odfimport.cxx')
-rw-r--r--sw/qa/extras/odfimport/odfimport.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx
index 17103151c763..f534a09d5128 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -408,6 +408,7 @@ DECLARE_ODFIMPORT_TEST(testFdo69979, "fdo69979.odt")
{
// The test doc is special in that it starts with a table and it also has a header.
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
+ CPPUNIT_ASSERT(pTxtDoc);
SwWrtShell* pWrtShell = pTxtDoc->GetDocShell()->GetWrtShell();
SwShellCrsr* pShellCrsr = pWrtShell->getShellCrsr(false);