From 95b42c9120ea68b136585e23a54a6558b9d2e50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 21 Jan 2017 14:55:19 +0000 Subject: [PATCH] coverity#1352253 Unchecked dynamic_cast Change-Id: I7634fd735f3bdb729c06bcbca05ae31c930db930 --- sw/qa/extras/uiwriter/uiwriter.cxx | 1 + 1 file changed, 1 insertion(+) 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(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);