summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfimport/odfimport.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-10 10:37:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-10 11:21:11 +0000
commit758cf90bdb38bba826fa867783fef9d4dc056875 (patch)
tree20af148589dbd351ab7992ec8088cab1da92b14b /sw/qa/extras/odfimport/odfimport.cxx
parent74dd647e764fada2bb52fb3544d20ec019ad2e69 (diff)
coverity#1130362 Unchecked dynamic_cast
Change-Id: I58d9c7e933152e0d8ca69125572c820b8dbe7405
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 0a79820768fa..8f7f8a72bfae 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -425,6 +425,7 @@ DECLARE_ODFIMPORT_TEST(testFdo69979, "fdo69979.odt")
DECLARE_ODFIMPORT_TEST(testSpellmenuRedline, "spellmenu-redline.odt")
{
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
+ CPPUNIT_ASSERT(pTxtDoc);
SwWrtShell* pWrtShell = pTxtDoc->GetDocShell()->GetWrtShell();
OUString aParaText;
uno::Reference<linguistic2::XSpellAlternatives> xAlt;