diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 10:36:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 11:21:10 +0000 |
commit | 74dd647e764fada2bb52fb3544d20ec019ad2e69 (patch) | |
tree | 8a0b0443a9bf72c32c268ff66abcb56f7a8f336c /sw/qa/extras/odfimport/odfimport.cxx | |
parent | c02e3b47affb078a59cf28abf20ea6b050549574 (diff) |
coverity#1130363 Unchecked dynamic_cast
Change-Id: Ibc1e6f5e7c7f2a0546847194de5f77ab51b2d578
Diffstat (limited to 'sw/qa/extras/odfimport/odfimport.cxx')
-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 f534a09d5128..0a79820768fa 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx @@ -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(); |