sw/source/core/doc/doccomp.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 501b15482ebb3b34277264ba7bfd442f91c593ff Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Sep 22 15:45:54 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Sep 23 15:49:58 2022 +0200 use more SwPosition::SetContent part of the process of hiding the internals of SwPosition Change-Id: Ie9e74ec299d59458d0fdd99f795dc2b9ff86ed32 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140436 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx index 9a6746c90a45..1779ec998300 100644 --- a/sw/source/core/doc/doccomp.cxx +++ b/sw/source/core/doc/doccomp.cxx @@ -1371,7 +1371,7 @@ bool SwCompareLine::ChangesInLine( const SwCompareLine& rLine, if( !rpInsRing ) rpInsRing.reset(pTmp); pTmp->SetMark(); - pTmp->GetMark()->nContent = nDstFrom + nSkip; + pTmp->GetMark()->SetContent(nDstFrom + nSkip); } if ( nSrcFrom < nSrcTo ) @@ -1380,7 +1380,7 @@ bool SwCompareLine::ChangesInLine( const SwCompareLine& rLine, rDstDoc.GetIDocumentUndoRedo().DoUndo( false ); SwPaM aCpyPam( rSrcNd, nSrcFrom ); aCpyPam.SetMark(); - aCpyPam.GetPoint()->nContent = nSrcTo; + aCpyPam.GetPoint()->SetContent(nSrcTo); aCpyPam.GetDoc().getIDocumentContentOperations().CopyRange( aCpyPam, *aPam.GetPoint(), SwCopyFlags::CheckPosInFly); rDstDoc.GetIDocumentUndoRedo().DoUndo( bUndo ); @@ -1390,7 +1390,7 @@ bool SwCompareLine::ChangesInLine( const SwCompareLine& rLine, rpDelRing.reset(pTmp); pTmp->SetMark(); - pTmp->GetMark()->nContent = nDstTo + nSkip; + pTmp->GetMark()->SetContent(nDstTo + nSkip); nSkip += nSrcTo - nSrcFrom; if( rpInsRing ) @@ -1921,7 +1921,7 @@ SaveMergeRedline::SaveMergeRedline( const SwNode& rDstNd, const SwPosition* pStt = rSrcRedl.Start(); if( rDstNd.IsContentNode() ) - aPos.nContent.Assign( static_cast<const SwContentNode*>(&rDstNd), pStt->GetContentIndex() ); + aPos.SetContent( pStt->GetContentIndex() ); pDestRedl = new SwRangeRedline( rSrcRedl.GetRedlineData(), aPos ); if( RedlineType::Delete != pDestRedl->GetType() )