Kaydet (Commit) 138d02c6 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#982474 Unchecked dynamic_cast

Change-Id: I67f495755502b034b8a09d8b6d61ede45f2d91e1
üst 7fce0e3f
......@@ -216,6 +216,7 @@ private:
void calcLayout()
{
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
CPPUNIT_ASSERT(pTxtDoc);
SwDoc* pDoc = pTxtDoc->GetDocShell()->GetDoc();
pDoc->GetCurrentViewShell()->CalcLayout();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment