Kaydet (Commit) 95b42c91 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1352253 Unchecked dynamic_cast

Change-Id: I7634fd735f3bdb729c06bcbca05ae31c930db930
üst 3b6c2159
...@@ -3372,6 +3372,7 @@ void SwUiWriterTest::testTdf89954() ...@@ -3372,6 +3372,7 @@ void SwUiWriterTest::testTdf89954()
SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell(); SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
pWrtShell->EndPara(); pWrtShell->EndPara();
SwXTextDocument* pXTextDocument = dynamic_cast<SwXTextDocument *>(mxComponent.get()); SwXTextDocument* pXTextDocument = dynamic_cast<SwXTextDocument *>(mxComponent.get());
CPPUNIT_ASSERT(pXTextDocument);
pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 't', 0); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 't', 0);
pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 'e', 0); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 'e', 0);
pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 's', 0); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 's', 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment