summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/doccorr.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-02 09:36:37 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-02 11:15:01 +0100
commit1bea427d55ecf4a1914a6c404fc0f06a7bb044bd (patch)
treefafcaf5c07e122e75ade45be89bf13976aa5ca26 /sw/source/core/doc/doccorr.cxx
parent98ee936a114bdd78c304aac824508cd4fd9ce59a (diff)
add rangeRing() for easier iteration
Change-Id: I0ef002c0c32c1435cbc62f954f98dc11c3f69945
Diffstat (limited to 'sw/source/core/doc/doccorr.cxx')
-rw-r--r--sw/source/core/doc/doccorr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/doccorr.cxx b/sw/source/core/doc/doccorr.cxx
index 67f6c95b971f..5dc2ca001f05 100644
--- a/sw/source/core/doc/doccorr.cxx
+++ b/sw/source/core/doc/doccorr.cxx
@@ -99,7 +99,7 @@ void PaMCorrAbs( const SwPaM& rRange,
if( pShell )
{
- BOOST_FOREACH(const SwViewShell& rShell, std::make_pair(pShell->beginRing(), pShell->endRing()))
+ BOOST_FOREACH(const SwViewShell& rShell, pShell->rangeRing())
{
if(!rShell.IsA( TYPE( SwCrsrShell )))
continue;
@@ -249,7 +249,7 @@ void PaMCorrRel( const SwNodeIndex &rOldNode,
SwCrsrShell const* pShell = pDoc->GetEditShell();
if( pShell )
{
- BOOST_FOREACH(const SwViewShell& rShell, std::make_pair(pShell->beginRing(), pShell->endRing()))
+ BOOST_FOREACH(const SwViewShell& rShell, pShell->rangeRing())
{
if(!rShell.IsA( TYPE( SwCrsrShell )))
continue;
@@ -262,7 +262,7 @@ void PaMCorrRel( const SwNodeIndex &rOldNode,
((_pStkCrsr = static_cast<SwPaM *>(_pStkCrsr->GetNext())) != pCrsrShell->GetStkCrsr()) );
SwPaM* pStartPaM = pCrsrShell->_GetCrsr();
- BOOST_FOREACH(SwPaM& rPaM, std::make_pair(pStartPaM->beginRing(), pStartPaM->endRing()))
+ BOOST_FOREACH(SwPaM& rPaM, pStartPaM->rangeRing())
{
lcl_PaMCorrRel1( &rPaM, pOldNode, aNewPos, nCntIdx);
}