sw/source/core/undo/unmove.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7cfc8bbec95d64613fc235a7af8c00ea99b6a8ed
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Sep 29 12:47:00 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Sep 29 13:38:03 2022 +0200

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

diff --git a/sw/source/core/undo/unmove.cxx b/sw/source/core/undo/unmove.cxx
index 6776f71b872c..ea939fd027c4 100644
--- a/sw/source/core/undo/unmove.cxx
+++ b/sw/source/core/undo/unmove.cxx
@@ -122,7 +122,7 @@ SwUndoMove::SwUndoMove( SwDoc& rDoc, const SwNodeRange& rRg,
         SwPosition aPtPos( rRg.aEnd );
         SwContentNode* pCNd = rRg.aEnd.GetNode().GetContentNode();
         if( pCNd )
-            aPtPos.nContent.Assign( pCNd, pCNd->Len() );
+            aPtPos.SetContent( pCNd->Len() );
         SwPosition aMkPos( rRg.aStart );
 
         DelContentIndex( aMkPos, aPtPos, DelContentType::Ftn );
@@ -182,7 +182,7 @@ void SwUndoMove::UndoImpl(::sw::UndoRedoContext & rContext)
 
             SwPosition aPos( *pDoc->GetNodes()[ m_nInsPosNode] );
             SwContentNode* pCNd = aPos.GetNode().GetContentNode();
-            aPos.nContent.Assign( pCNd, m_nInsPosContent );
+            aPos.SetContent( m_nInsPosContent );
 
             if( pCNd->HasSwAttrSet() )
                 pCNd->ResetAllAttr();

Reply via email to