summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-10 08:58:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-10 08:58:40 +0000
commit0ae45758d1f4235f98c98f22e027ab3298e21b86 (patch)
treead76dfd934d7cd2d4932a3edea15e8d19758d5b5 /sw
parent34e9e77bf38b9ea7569f6a051505ac92eb4ae825 (diff)
coverity#1402149 Unchecked dynamic_cast
Change-Id: I73fa2c6d3658e10728492c9766acef1eaadc5ca1
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ww8import/ww8import.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8import/ww8import.cxx b/sw/qa/extras/ww8import/ww8import.cxx
index 4ec5ca04ca24..c50ab96722f8 100644
--- a/sw/qa/extras/ww8import/ww8import.cxx
+++ b/sw/qa/extras/ww8import/ww8import.cxx
@@ -83,6 +83,7 @@ DECLARE_WW8IMPORT_TEST( testTdf105570, "tdf105570.doc" )
* Table 3 has { 0, 1, 1 }
****/
SwXTextDocument* pTextDoc = dynamic_cast<SwXTextDocument*>(mxComponent.get());
+ CPPUNIT_ASSERT(pTextDoc);
SwDoc* pDoc = pTextDoc->GetDocShell()->GetDoc();
SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
SwShellCursor* pShellCursor = pWrtShell->getShellCursor( false );