From e8193627922ee328d17250ec518ecd4ba342c97d Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Fri, 25 Jul 2014 10:21:16 +0200 Subject: use the Redline iterator Change-Id: Ia15e5a376b2a7503f56f183a555e21d1122fe66f --- sw/source/core/doc/CntntIdxStore.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx index 56c554d7a85b..ee22f8690e51 100644 --- a/sw/source/core/doc/CntntIdxStore.cxx +++ b/sw/source/core/doc/CntntIdxStore.cxx @@ -264,10 +264,9 @@ void CntntIdxStoreImpl::RestoreBkmks(SwDoc* pDoc, updater_t& rUpdater) void CntntIdxStoreImpl::SaveRedlines(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nCntnt) { - const SwRedlineTbl& rRedlTbl = pDoc->GetRedlineTbl(); - for( long int nIdx = 0 ; static_cast(nIdx) < rRedlTbl.size(); ++nIdx ) + long int nIdx = 0; + BOOST_FOREACH(const SwRangeRedline* pRdl, pDoc->GetRedlineTbl()) { - const SwRangeRedline* pRdl = rRedlTbl[ nIdx ]; int nPointPos = lcl_RelativePosition( *pRdl->GetPoint(), nNode, nCntnt ); int nMarkPos = pRdl->HasMark() ? lcl_RelativePosition( *pRdl->GetMark(), nNode, nCntnt ) : nPointPos; @@ -286,6 +285,7 @@ void CntntIdxStoreImpl::SaveRedlines(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nCn const MarkEntry aEntry = { nIdx, true, pRdl->GetMark()->nContent.GetIndex() }; m_aRedlineEntries.push_back(aEntry); } + ++nIdx; } } -- cgit v1.2.3