From ec47c1b80b264e21b6ee6ffe00ca2fa6d82b5396 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Wed, 3 Dec 2014 18:44:10 +0100 Subject: unnecessary cast Change-Id: I32f3396f97e7144f5aa4037d4a312085ac113e3d --- sw/source/core/unocore/unoobj2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx index 09cdf3ead506..883ff5cb589d 100644 --- a/sw/source/core/unocore/unoobj2.cxx +++ b/sw/source/core/unocore/unoobj2.cxx @@ -140,14 +140,14 @@ void DeepCopyPaM(SwPaM const & rSource, SwPaM & rTarget) if (rSource.GetNext() != &rSource) { - SwPaM *pPam = static_cast(rSource.GetNext()); + SwPaM *pPam = rSource.GetNext(); do { // create new PaM SwPaM *const pNew = new SwPaM(*pPam); // insert into ring pNew->MoveTo(&rTarget); - pPam = static_cast(pPam->GetNext()); + pPam = pPam->GetNext(); } while (pPam != &rSource); } -- cgit