diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 15:34:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 17:05:43 +0000 |
commit | 7be62f8ceb864e9560a959006381d95bb8febfc6 (patch) | |
tree | 12f6fb5621c056af9c4d6f3231524a559af3ecd6 | |
parent | 9a29cd7d26ccdd97b728a4c837c58624770122eb (diff) |
coverity#1399026 Unchecked dynamic_cast
Change-Id: I60188c36bdd6d44c5bd8dae28debafc10b6c9f3b
-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 a576ce33da98..fd0909e52827 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -3858,6 +3858,7 @@ void SwUiWriterTest::testTdf84695Tab() // Now pressing 'tab' should jump to the other shape. SwXTextDocument* pXTextDocument = dynamic_cast<SwXTextDocument *>(mxComponent.get()); + CPPUNIT_ASSERT(pXTextDocument); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_TAB); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_TAB); |