diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-19 16:34:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-20 09:56:28 +0200 |
commit | 34a11c40fbc1bf8f55df29c17227981206cf2426 (patch) | |
tree | dabf130852b46029911edbc5a784dbc62820cdb9 | |
parent | 4ab105d14148932f6d848b56678e942c50631964 (diff) |
coverity#1437409 Unchecked dynamic_cast
Change-Id: I00d0bfc961bd7b8b183008be1d9be93d1e717688
Reviewed-on: https://gerrit.libreoffice.org/56117
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/qa/extras/ww8export/ww8export2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/extras/ww8export/ww8export2.cxx b/sw/qa/extras/ww8export/ww8export2.cxx index c982009b44cc..66b9a02612ef 100644 --- a/sw/qa/extras/ww8export/ww8export2.cxx +++ b/sw/qa/extras/ww8export/ww8export2.cxx @@ -308,10 +308,11 @@ DECLARE_WW8EXPORT_TEST(testTdf111480, "tdf111480.doc") DECLARE_WW8EXPORT_TEST(testTdf70838, "tdf70838.odt") { SwXTextDocument* pTextDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get()); + CPPUNIT_ASSERT(pTextDoc); SwDoc* pDoc = pTextDoc->GetDocShell()->GetDoc(); SdrPage* pPage = pDoc->getIDocumentDrawModelAccess().GetDrawModel()->GetPage(0); tools::Rectangle aRect = pPage->GetObj(0)->GetSnapRect(); - CPPUNIT_ASSERT( aRect.GetHeight() > aRect.GetWidth() ); + CPPUNIT_ASSERT(aRect.GetHeight() > aRect.GetWidth()); } DECLARE_WW8EXPORT_TEST( testActiveXCheckbox, "checkbox_control.odt" ) |