sw/source/core/undo/untbl.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 03fdae6565bc3e290bd7e7bb211ccdef39fc3105
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Oct 6 15:20:43 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Oct 7 12:36:16 2022 +0200

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

diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index 7549433a05d1..ea1d4066d145 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.cxx
@@ -2685,12 +2685,12 @@ std::unique_ptr<SwUndo> 
SwUndoTableCpyTable::PrepareRedline( SwDoc* pDoc, const
     {
         pText = aDeleteStart.GetNode().GetTextNode();
         if( pText )
-            aDeleteStart.nContent.Assign( pText, 0 );
+            aDeleteStart.SetContent( 0 );
     }
     SwPosition aCellEnd( *rBox.GetSttNd()->EndOfSectionNode(), 
SwNodeOffset(-1) );
     pText = aCellEnd.GetNode().GetTextNode();
     if( pText )
-        aCellEnd.nContent.Assign(pText, pText->GetText().getLength());
+        aCellEnd.SetContent(pText->GetText().getLength());
     if( aDeleteStart != aCellEnd )
     {   // If the old (deleted) part is not empty, here we are...
         SwPaM aDeletePam( aDeleteStart, aCellEnd );
@@ -2706,7 +2706,7 @@ std::unique_ptr<SwUndo> 
SwUndoTableCpyTable::PrepareRedline( SwDoc* pDoc, const
     SwPosition aCellStart( *rBox.GetSttNd(), SwNodeOffset(2) );
     pText = aCellStart.GetNode().GetTextNode();
     if( pText )
-        aCellStart.nContent.Assign( pText, 0 );
+        aCellStart.SetContent( 0 );
     if( aCellStart != aInsertEnd ) // An empty insertion will not been marked
     {
         SwPaM aTmpPam( aCellStart, aInsertEnd );

Reply via email to