coverity#735889 Unchecked dynamic_cast

Change-Id: Ia55f575f6bfd1d90c2a517db8a76d7d22cdfd6e4
This commit is contained in:
Caolán McNamara
2014-06-06 10:55:45 +01:00
parent e1ac3f386c
commit ff38a90357

View File

@@ -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);