diff options
Diffstat (limited to 'sw/source/core/doc/doccorr.cxx')
-rw-r--r-- | sw/source/core/doc/doccorr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/doccorr.cxx b/sw/source/core/doc/doccorr.cxx index 2012dfc06faf..2e73dd1d850e 100644 --- a/sw/source/core/doc/doccorr.cxx +++ b/sw/source/core/doc/doccorr.cxx @@ -147,7 +147,7 @@ void PaMCorrAbs( const SwPaM& rRange, dynamic_cast<SwUnoTableCursor *>(pUnoCursor.get()); if( pUnoTableCursor ) { - for(SwPaM& rPaM : (&pUnoTableCursor->GetSelRing())->GetRingContainer()) + for(SwPaM& rPaM : pUnoTableCursor->GetSelRing().GetRingContainer()) { bChange |= lcl_PaMCorrAbs( rPaM, aStart, aEnd, aNewPos ); @@ -289,7 +289,7 @@ void PaMCorrRel( const SwNodeIndex &rOldNode, dynamic_cast<SwUnoTableCursor*>(pUnoCursor.get()); if( pUnoTableCursor ) { - for(SwPaM& rPaM : (&pUnoTableCursor->GetSelRing())->GetRingContainer()) + for(SwPaM& rPaM : pUnoTableCursor->GetSelRing().GetRingContainer()) { lcl_PaMCorrRel1( &rPaM, pOldNode, aNewPos, nCntIdx ); } |