diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/CntntIdxStore.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/doccorr.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx index f164af01569f..4c824c2198da 100644 --- a/sw/source/core/doc/CntntIdxStore.cxx +++ b/sw/source/core/doc/CntntIdxStore.cxx @@ -402,7 +402,7 @@ void ContentIdxStoreImpl::SaveUnoCursors(SwDoc* pDoc, sal_uLong nNode, sal_Int32 const SwUnoTableCursor* pUnoTableCursor = dynamic_cast<const SwUnoTableCursor*>(pUnoCursor.get()); if( pUnoTableCursor ) { - for(SwPaM& rPaM : (&(const_cast<SwUnoTableCursor*>(pUnoTableCursor))->GetSelRing())->GetRingContainer()) + for(SwPaM& rPaM : const_cast<SwUnoTableCursor*>(pUnoTableCursor)->GetSelRing().GetRingContainer()) { lcl_ChkUnoCrsrPaMBoth(m_aUnoCursorEntries, nNode, nContent, rPaM); } 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 ); } |