sw/source/core/doc/doctxm.cxx   |    1 -
 sw/source/core/doc/extinput.cxx |    6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

New commits:
commit ab4c74241ddc1a09c82d5ef240a170b0dc38b31c
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Thu Sep 29 18:38:41 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Sep 29 20:14:05 2022 +0200

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

diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 215f9e9fb5c9..36c197732cd9 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -1123,7 +1123,6 @@ void SwTOXBaseSection::Update(const SfxItemSet* pAttr,
     aInsPos = *pFirstEmptyNd;
     {
         SwPaM aCorPam( *pFirstEmptyNd );
-        aCorPam.GetPoint()->nContent.Assign( pFirstEmptyNd, 0 );
         if( !aCorPam.Move( fnMoveForward ) )
             aCorPam.Move( fnMoveBackward );
         SwNodeIndex aEndIdx( aInsPos, 1 );
diff --git a/sw/source/core/doc/extinput.cxx b/sw/source/core/doc/extinput.cxx
index 9bdcb1d4648d..c8563facbd85 100644
--- a/sw/source/core/doc/extinput.cxx
+++ b/sw/source/core/doc/extinput.cxx
@@ -143,7 +143,7 @@ SwExtTextInput::~SwExtTextInput()
     {
         SvxLanguageItem aLangItem( m_eInputLanguage, nWhich );
         rPtPos.SetContent(nSttCnt);
-        GetMark()->nContent = nEndCnt;
+        GetMark()->SetContent(nEndCnt);
         rDoc.getIDocumentContentOperations().InsertPoolItem(*this, aLangItem );
     }
 }
@@ -193,7 +193,7 @@ void SwExtTextInput::SetInputData( const 
CommandExtTextInputData& rData )
         pTNd->ReplaceText( aIdx, nReplace, rNewStr );
         if( !HasMark() )
             SetMark();
-        GetMark()->nContent = aIdx;
+        GetMark()->Assign(*aIdx.GetContentNode(), aIdx.GetIndex());
     }
     else
     {
@@ -208,7 +208,7 @@ void SwExtTextInput::SetInputData( const 
CommandExtTextInputData& rData )
             SetMark();
     }
 
-    GetPoint()->nContent = nSttCnt;
+    GetPoint()->SetContent(nSttCnt);
 
     m_aAttrs.clear();
     if( rData.GetTextAttr() )

Reply via email to