summaryrefslogtreecommitdiff
path: root/sw/qa/core
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-19 15:55:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-19 15:55:20 +0000
commitd74f5f8633d6fe39011d5a613e1dc62402e7a4e7 (patch)
tree08c270c24f5e24577c83697e1de51bc57222d399 /sw/qa/core
parentd619d23a1f641fc910723cc32c4d8c8d9a8f3681 (diff)
coverity#1270937 Unchecked dynamic_cast
Change-Id: Ibc6e54bf7f907ae1c500be5c67995419c91aa089
Diffstat (limited to 'sw/qa/core')
-rw-r--r--sw/qa/core/macros-test.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/core/macros-test.cxx b/sw/qa/core/macros-test.cxx
index d0c9e6dc0e67..c266d71e0b23 100644
--- a/sw/qa/core/macros-test.cxx
+++ b/sw/qa/core/macros-test.cxx
@@ -405,6 +405,7 @@ void SwMacrosTest::testFindReplace()
Reference<lang::XComponent> const xComponent =
loadFromDesktop("private:factory/swriter", "com.sun.star.text.TextDocument");
SwXTextDocument *const pTxtDoc = dynamic_cast<SwXTextDocument *>(xComponent.get());
+ CPPUNIT_ASSERT(pTxtDoc);
SwDoc *const pDoc = pTxtDoc->GetDocShell()->GetDoc();
SwNodeIndex aIdx(pDoc->GetNodes().GetEndOfContent(), -1);
// use a UnoCrsr so it will be corrected when deleting nodes