From 6878f0debf38ba93aa5fad6c303a3c9e8e12b2ed Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 23 May 2014 17:11:30 +0100 Subject: coverity#1209381 Unchecked dynamic_cast Change-Id: Idab888e866fa08e184b51b8209a4154062d61041 --- sw/qa/core/uwriter.cxx | 4 ++-- 1 file 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(&aIdx.GetNode()); - pParaNode2->JoinNext(); + SwTxtNode& rParaNode2 = dynamic_cast(aIdx.GetNode()); + rParaNode2.JoinNext(); } ::sw::mark::IMark* pBM1 = pMarksAccess->findMark("Para1")->get(); ::sw::mark::IMark* pBM2 = pMarksAccess->findMark("Para2")->get(); -- cgit