diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-27 13:41:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-08-27 21:44:08 +0200 |
commit | 3c74c8be066945be4f0a6da61eaeb21b2b0681a5 (patch) | |
tree | 30b2d9ed71f87906bd0b875f963346ac9a885a57 | |
parent | 7e134b66ec74f53be52b3c2e371b5bb8ca0d3dfd (diff) |
coverity#1416667 Unchecked dynamic_cast
Change-Id: I562f7b41da67b65609d3eb156f52e2fa0adc9fd4
Reviewed-on: https://gerrit.libreoffice.org/41604
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport9.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx index 2efa7f189d0e..a8abe8489c57 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx @@ -604,6 +604,7 @@ DECLARE_OOXMLEXPORT_TEST(testTdf55427_footnote2endnote, "tdf55427_footnote2endno 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() ); |