summaryrefslogtreecommitdiff
path: root/sw/qa/extras
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-27 13:40:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-08-27 21:42:41 +0200
commit6b8e3ab384efb0e8a1d2f49eb8e5b306ceb640bc (patch)
tree20b6509aa909e6f62f81a4506f40652f2d7e655e /sw/qa/extras
parentae8e1ad2e322cfa9522f793edc961203e28c1f22 (diff)
coverity#1416886 Unchecked dynamic_cast
Change-Id: I5a6a4ec99449d70d2dd812cf5520900e4d0d3d14 Reviewed-on: https://gerrit.libreoffice.org/41603 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/ooxmlexport/ooxmlexport9.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
index f381de9c9032..ba35ee12fdc8 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
@@ -1000,6 +1000,7 @@ DECLARE_OOXMLEXPORT_TEST(testWatermarkLayer, "watermark-layer.docx")
// Watermark was not visible if page background was set.
SwXTextDocument* pTextDoc = dynamic_cast<SwXTextDocument*>(mxComponent.get());
+ CPPUNIT_ASSERT(pTextDoc);
SdrPage* pPage = pTextDoc->GetDocShell()->GetDoc()->getIDocumentDrawModelAccess().GetDrawModel()->GetPage(0);
SdrObject* pObject = pPage->GetObj(0);