coverity#1130361 Unchecked dynamic_cast
Change-Id: I2c93a085fe55098777ae7b41953f2610903b5a54
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user