coverity#1130363 Unchecked dynamic_cast

Change-Id: Ibc1e6f5e7c7f2a0546847194de5f77ab51b2d578
This commit is contained in:
Caolán McNamara
2014-02-10 10:36:41 +00:00
parent c02e3b47af
commit 74dd647e76

View File

@@ -366,6 +366,7 @@ DECLARE_ODFIMPORT_TEST(testFdo37606, "fdo37606.odt")
DECLARE_ODFIMPORT_TEST(testFdo37606Copy, "fdo37606.odt")
{
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
CPPUNIT_ASSERT(pTxtDoc);
SwWrtShell* pWrtShell = pTxtDoc->GetDocShell()->GetWrtShell();
// Ctrl-A
pWrtShell->SelAll();