coverity#1130366 Unchecked dynamic_cast

Change-Id: Icf7576b12fe3c876193fd87ce07c18e57a3dfad7
This commit is contained in:
Caolán McNamara
2014-02-10 10:35:23 +00:00
parent a90746cb65
commit 87015e5433

View File

@@ -327,6 +327,7 @@ DECLARE_ODFIMPORT_TEST(testFdo68839, "fdo68839.odt")
DECLARE_ODFIMPORT_TEST(testFdo37606, "fdo37606.odt")
{
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
CPPUNIT_ASSERT(pTxtDoc);
SwWrtShell* pWrtShell = pTxtDoc->GetDocShell()->GetWrtShell();
SwShellCrsr* pShellCrsr = pWrtShell->getShellCrsr(false);