summaryrefslogtreecommitdiff
path: root/sw/qa/extras
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-25 10:30:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-08-25 19:34:19 +0200
commit304d7f557acee5ac1aa6e072550bb73f3a6e9e29 (patch)
tree676e9c9519aa5d641ea4ebffd63e7706473f09b5 /sw/qa/extras
parent90beace1e0a67027f4830510840b4aff444414bb (diff)
coverity#1416667 Unchecked dynamic_cast
Change-Id: I1df3f13c47a021bad7c5b5ab7d5804dc70f091c8 Reviewed-on: https://gerrit.libreoffice.org/41558 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/qa/extras')
-rw-r--r--sw/qa/extras/ww8export/ww8export2.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/ww8export2.cxx b/sw/qa/extras/ww8export/ww8export2.cxx
index 066b680d01dd..1aadcb17326f 100644
--- a/sw/qa/extras/ww8export/ww8export2.cxx
+++ b/sw/qa/extras/ww8export/ww8export2.cxx
@@ -62,6 +62,7 @@ DECLARE_WW8EXPORT_TEST(testTdf55427_footnote2endnote, "tdf55427_footnote2endnote
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Endnote style is cyan3 color", sal_Int32(0x2BD0D2), getProperty< sal_Int32 >(xPageStyle, "CharColor") );
SwXTextDocument* pTextDoc = dynamic_cast<SwXTextDocument*>(mxComponent.get());
+ CPPUNIT_ASSERT(pTextDoc);
SwDoc* pDoc = pTextDoc->GetDocShell()->GetDoc();
// The footnote numbering type of ARABIC will not transfer over when those footnotes are converted to endnotes.
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Footnote numbering type", SVX_NUM_ARABIC, pDoc->GetFootnoteInfo().aFormat.GetNumberingType() );