diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-09-29 18:38:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-29 20:14:05 +0200 |
commit | ab4c74241ddc1a09c82d5ef240a170b0dc38b31c (patch) | |
tree | 27ed837d4948a3b845572df7b2e706457c9ebb41 | |
parent | 13a10516e71609d677d7f7d274f3ddc98cb8df18 (diff) |
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.grandin@collabora.co.uk>
-rw-r--r-- | sw/source/core/doc/doctxm.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/doc/extinput.cxx | 6 |
2 files changed, 3 insertions, 4 deletions
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() ) |