diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 14:55:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 17:05:19 +0000 |
commit | 95b42c9120ea68b136585e23a54a6558b9d2e50f (patch) | |
tree | a28c59dbc08a9ec4fbd1b73932cfce3348dfdf43 /sw/qa | |
parent | 3b6c21594ebf813c3448d1f9096e3766a2664268 (diff) |
coverity#1352253 Unchecked dynamic_cast
Change-Id: I7634fd735f3bdb729c06bcbca05ae31c930db930
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index fd44880af9c5..3a4971fc58c1 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -3372,6 +3372,7 @@ void SwUiWriterTest::testTdf89954() SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell(); pWrtShell->EndPara(); SwXTextDocument* pXTextDocument = dynamic_cast<SwXTextDocument *>(mxComponent.get()); + CPPUNIT_ASSERT(pXTextDocument); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 't', 0); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 'e', 0); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 's', 0); |