summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-23 17:11:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-23 20:37:36 +0100
commit6878f0debf38ba93aa5fad6c303a3c9e8e12b2ed (patch)
tree8f67edcca376df84f7aa7b8d7c97dfeda3dfabf3
parent3d39e41e1f07c481d741678b340755dfaef7e4f7 (diff)
coverity#1209381 Unchecked dynamic_cast
Change-Id: Idab888e866fa08e184b51b8209a4154062d61041
-rw-r--r--sw/qa/core/uwriter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index bd6e000e9d02..6b073fee70d7 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -1045,8 +1045,8 @@ void SwDocTest::testMarkMove()
// join paragraph 2 and 3 and check
{
SwNodeIndex aIdx(m_pDoc->GetNodes().GetEndOfContent(), -2);
- SwTxtNode* pParaNode2 = dynamic_cast<SwTxtNode*>(&aIdx.GetNode());
- pParaNode2->JoinNext();
+ SwTxtNode& rParaNode2 = dynamic_cast<SwTxtNode&>(aIdx.GetNode());
+ rParaNode2.JoinNext();
}
::sw::mark::IMark* pBM1 = pMarksAccess->findMark("Para1")->get();
::sw::mark::IMark* pBM2 = pMarksAccess->findMark("Para2")->get();