coverity#1361585 Unchecked dynamic_cast

Change-Id: I664dc6d5c38bcc4fd75d436b67453983e4b57403
This commit is contained in:
Caolán McNamara
2017-01-21 14:56:46 +00:00
parent 0c8799097a
commit 7667869db0

View File

@@ -3834,7 +3834,8 @@ void SwUiWriterTest::testTdf84695NormalChar()
pWrtShell->SelectObj(Point(), 0, pObject);
// Now pressing 'a' should add a character.
SwXTextDocument* pXTextDocument = dynamic_cast<SwXTextDocument *>(mxComponent.get());
SwXTextDocument* pXTextDocument = dynamic_cast<SwXTextDocument*>(mxComponent.get());
CPPUNIT_ASSERT(pXTextDocument);
pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 'a', 0);
uno::Reference<text::XTextRange> xShape(getShape(1), uno::UNO_QUERY);