summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-07-25 10:21:16 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-07-28 12:25:48 +0200
commite8193627922ee328d17250ec518ecd4ba342c97d (patch)
tree5823b027584d19d8b30bd756fa4d14c5aeb15766
parent46c3eca442c31663ac0a907769e65679af090920 (diff)
use the Redline iterator
Change-Id: Ia15e5a376b2a7503f56f183a555e21d1122fe66f
-rw-r--r--sw/source/core/doc/CntntIdxStore.cxx6
1 files 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<unsigned long int>(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;
}
}