summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/doccorr.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-01 20:50:33 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-02 00:37:15 +0100
commit2d28ed7b0ef302b9f6923ad02822882357b6d1aa (patch)
tree38f55f1d1c88ed9bda6c6044f05a5cc6d366f791 /sw/source/core/doc/doccorr.cxx
parentd57baa3d5d197c6620078104cca57fd8104012f6 (diff)
kill FOREACHPAM_START_CONST
it was used for iterations with non-const operations only anyway Change-Id: I63b0c1b3a58ff940820f469e586369cb2a255df7
Diffstat (limited to 'sw/source/core/doc/doccorr.cxx')
-rw-r--r--sw/source/core/doc/doccorr.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/core/doc/doccorr.cxx b/sw/source/core/doc/doccorr.cxx
index 2698a9ad0442..67f6c95b971f 100644
--- a/sw/source/core/doc/doccorr.cxx
+++ b/sw/source/core/doc/doccorr.cxx
@@ -261,9 +261,11 @@ void PaMCorrRel( const SwNodeIndex &rOldNode,
} while ( (_pStkCrsr != 0 ) &&
((_pStkCrsr = static_cast<SwPaM *>(_pStkCrsr->GetNext())) != pCrsrShell->GetStkCrsr()) );
- FOREACHPAM_START_CONST( pCrsrShell->_GetCrsr() )
- lcl_PaMCorrRel1( PCURCRSR, pOldNode, aNewPos, nCntIdx);
- FOREACHPAM_END()
+ SwPaM* pStartPaM = pCrsrShell->_GetCrsr();
+ BOOST_FOREACH(SwPaM& rPaM, std::make_pair(pStartPaM->beginRing(), pStartPaM->endRing()))
+ {
+ lcl_PaMCorrRel1( &rPaM, pOldNode, aNewPos, nCntIdx);
+ }
if( pCrsrShell->IsTableMode() )
lcl_PaMCorrRel1( pCrsrShell->GetTblCrs(), pOldNode, aNewPos, nCntIdx );