summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-09-22 15:45:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-23 15:49:58 +0200
commit501b15482ebb3b34277264ba7bfd442f91c593ff (patch)
tree5ae525d10fbea31b97419b78433e48fdc456c061 /sw
parentdcb991bbc6a1a66103b3c0fbc6e996a27e3e90b1 (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doccomp.cxx8
1 files changed, 4 insertions, 4 deletions
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() )