coverity#1130361 Unchecked dynamic_cast

Change-Id: I2c93a085fe55098777ae7b41953f2610903b5a54
This commit is contained in:
Caolán McNamara
2014-02-10 10:37:49 +00:00
parent 758cf90bdb
commit b74f9e31b2

View File

@@ -49,6 +49,7 @@ SwDoc* SwUiWriterTest::createDoc(const char* pName)
load(DATA_DIRECTORY, pName);
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
CPPUNIT_ASSERT(pTxtDoc);
return pTxtDoc->GetDocShell()->GetDoc();
}