summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfimport/odfimport.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-10 10:35:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-10 11:21:10 +0000
commit778e88e86384e22852eb412c4f9af4494b2f0c3a (patch)
tree00ff76e7e2ec8f569b7ae88e3a0bcfa1222eb779 /sw/qa/extras/odfimport/odfimport.cxx
parent87015e5433d9c6575f07b5a81e4ffa6e1e4831d2 (diff)
coverity#1130365 Unchecked dynamic_cast
Change-Id: I1298d220c42aa7282cdc6c256727620ee1a6f749
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 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<SwXTextDocument *>(mxComponent.get());
+ CPPUNIT_ASSERT(pTxtDoc);
SwWrtShell* pWrtShell = pTxtDoc->GetDocShell()->GetWrtShell();
SwShellCrsr* pShellCrsr = pWrtShell->getShellCrsr(false);