sw/source/core/frmedt/feshview.cxx |    4 ++--
 sw/source/core/frmedt/fetab.cxx    |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 50a4b5ed34b28f85f1df3be5f67266758b93c698
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sat Oct 8 07:56:06 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Oct 8 11:57:21 2022 +0200

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

diff --git a/sw/source/core/frmedt/feshview.cxx 
b/sw/source/core/frmedt/feshview.cxx
index c17c51873e95..1b2b4ead071d 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -2005,11 +2005,11 @@ bool SwFEShell::ImpEndCreate()
             {
                 std::pair<SwTextNode const*, sal_Int32> const pos(
                     static_cast<SwTextFrame 
const*>(pAnch)->MapViewToModel(TextFrameIndex(0)));
-                aPos.nNode = *pos.first;
+                aPos.Assign( *pos.first );
             }
             else
             {
-                aPos.nNode = *static_cast<const 
SwNoTextFrame*>(pAnch)->GetNode();
+                aPos.Assign( *static_cast<const 
SwNoTextFrame*>(pAnch)->GetNode() );
             }
 
             // do not set in ReadnOnly-content
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx
index 66300afddc58..4070fe8d7895 100644
--- a/sw/source/core/frmedt/fetab.cxx
+++ b/sw/source/core/frmedt/fetab.cxx
@@ -479,10 +479,10 @@ bool SwFEShell::DeleteRow(bool bCompleteTable)
                     pTableCursor->DeleteMark();
 
                     // set start and end of the selection
-                    pTableCursor->GetPoint()->nNode = *pEnd->GetSttNd();
+                    pTableCursor->GetPoint()->Assign( *pEnd->GetSttNd() );
                     pTableCursor->Move( fnMoveForward, GoInContent );
                     pTableCursor->SetMark();
-                    pTableCursor->GetPoint()->nNode = 
*pStt->GetSttNd()->EndOfSectionNode();
+                    pTableCursor->GetPoint()->Assign( 
*pStt->GetSttNd()->EndOfSectionNode() );
                     pTableCursor->Move( fnMoveBackward, GoInContent );
                     pWrtShell->UpdateCursor();
                 }

Reply via email to