diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 10:35:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 11:21:09 +0000 |
commit | 87015e5433d9c6575f07b5a81e4ffa6e1e4831d2 (patch) | |
tree | 05061dca41e2a156e145d57d419b399214f1a849 /sw | |
parent | a90746cb651fed676b2189154a6b6724cb987526 (diff) |
coverity#1130366 Unchecked dynamic_cast
Change-Id: Icf7576b12fe3c876193fd87ce07c18e57a3dfad7
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/odfimport/odfimport.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx index a72d643f28fc..224ed9dc2ee7 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx @@ -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); |