coverity#735889 Unchecked dynamic_cast
Change-Id: Ia55f575f6bfd1d90c2a517db8a76d7d22cdfd6e4
This commit is contained in:
@@ -275,6 +275,7 @@ private:
|
||||
|
||||
// create the dump
|
||||
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
|
||||
CPPUNIT_ASSERT(pTxtDoc);
|
||||
SwDoc* pDoc = pTxtDoc->GetDocShell()->GetDoc();
|
||||
SwRootFrm* pLayout = pDoc->GetCurrentLayout();
|
||||
pLayout->dumpAsXml(pXmlWriter);
|
||||
|
Reference in New Issue
Block a user