sw/source/core/undo/undraw.cxx |    2 +-
 sw/source/core/undo/unsort.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f1cf3bcae686a9c49c3a941100ded88d7fd84091
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Sep 29 12:50:48 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Sep 29 13:37:23 2022 +0200

    use more SwPosition::SetContent
    
    part of the process of hiding the internals of SwPosition
    
    Change-Id: I0cbe2865b0d411b3385476fa16988de4fd34531c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140728
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/undo/undraw.cxx b/sw/source/core/undo/undraw.cxx
index b15f2e8cbc04..6167ae04ca4e 100644
--- a/sw/source/core/undo/undraw.cxx
+++ b/sw/source/core/undo/undraw.cxx
@@ -153,7 +153,7 @@ static void lcl_RestoreAnchor( SwFrameFormat* pFormat, 
SwNodeOffset nNodePos )
     if ((RndStdIds::FLY_AS_CHAR == rAnchor.GetAnchorId()) ||
         (RndStdIds::FLY_AT_CHAR == rAnchor.GetAnchorId()))
     {
-        aPos.nContent.Assign( aIdx.GetNode().GetContentNode(), nContentPos );
+        aPos.SetContent( nContentPos );
     }
     aTmp.SetAnchor( &aPos );
     RndStdIds nAnchorId = rAnchor.GetAnchorId();
diff --git a/sw/source/core/undo/unsort.cxx b/sw/source/core/undo/unsort.cxx
index 39ca01a65c44..26d151b8c517 100644
--- a/sw/source/core/undo/unsort.cxx
+++ b/sw/source/core/undo/unsort.cxx
@@ -222,7 +222,7 @@ void SwUndoSort::RedoImpl(::sw::UndoRedoContext & rContext)
         SwTextNode const*const pTNd = rPam.GetPointNode().GetTextNode();
         if( pTNd )
         {
-            rPam.GetPoint()->nContent = pTNd->GetText().getLength();
+            rPam.GetPoint()->SetContent( pTNd->GetText().getLength() );
         }
     }
 }

Reply via email to