sw/inc/pam.hxx | 2 +- sw/inc/redline.hxx | 4 ++-- sw/source/core/doc/docredln.cxx | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-)
New commits: commit a17374e429609748c381d508efdd9b4d5325f1b8 Author: Noel Grandin <[email protected]> AuthorDate: Mon Aug 1 10:41:54 2022 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Tue Aug 2 21:37:03 2022 +0200 introduce SwPosition::SetRedline as part of the process of hiding the internals of SwPosition largely done by doing: git grep -lF 'nContent.SetRedline' | xargs perl -pi -e 's/\bnContent\.SetRedline/SetRedline/g' Change-Id: If4d774959b0cc0fb87040f8f91c094dcd830dcd4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137698 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index 365338e476af..c8ff813893d4 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -81,8 +81,8 @@ struct SAL_WARN_UNUSED SW_DLLPUBLIC SwPosition sal_Int32 GetContentIndex() const { return nContent.GetIndex(); } - void SetMark(const sw::mark::IMark* pMark) { nContent.SetMark(pMark); } + void SetRedline(SwRangeRedline* pRangeRedline) { nContent.SetRedline(pRangeRedline); } }; SW_DLLPUBLIC std::ostream &operator <<(std::ostream& s, const SwPosition& position); diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx index 181001fed6b1..a76c9b2eb871 100644 --- a/sw/inc/redline.hxx +++ b/sw/inc/redline.hxx @@ -179,8 +179,8 @@ public: SwPaM( rPos ), m_pRedlineData( pData ), m_pContentSect( nullptr ), m_nId( s_nLastId++ ), m_bDelLastPara( bDelLP ), m_bIsVisible( true ) { - GetBound().nContent.SetRedline(this); - GetBound(false).nContent.SetRedline(this); + GetBound().SetRedline(this); + GetBound(false).SetRedline(this); } SwRangeRedline( const SwRangeRedline& ); virtual ~SwRangeRedline() override; diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx index 7457b11ee2c1..a80af53a66a7 100644 --- a/sw/source/core/doc/docredln.cxx +++ b/sw/source/core/doc/docredln.cxx @@ -1104,8 +1104,8 @@ SwRangeRedline::SwRangeRedline(RedlineType eTyp, const SwPaM& rPam ) m_pContentSect( nullptr ), m_nId( s_nLastId++ ) { - GetBound().nContent.SetRedline(this); - GetBound(false).nContent.SetRedline(this); + GetBound().SetRedline(this); + GetBound(false).SetRedline(this); m_bDelLastPara = false; m_bIsVisible = true; @@ -1127,8 +1127,8 @@ SwRangeRedline::SwRangeRedline( const SwRedlineData& rData, const SwPaM& rPam ) m_pContentSect( nullptr ), m_nId( s_nLastId++ ) { - GetBound().nContent.SetRedline(this); - GetBound(false).nContent.SetRedline(this); + GetBound().SetRedline(this); + GetBound(false).SetRedline(this); m_bDelLastPara = false; m_bIsVisible = true; @@ -1142,8 +1142,8 @@ SwRangeRedline::SwRangeRedline( const SwRedlineData& rData, const SwPosition& rP m_pContentSect( nullptr ), m_nId( s_nLastId++ ) { - GetBound().nContent.SetRedline(this); - GetBound(false).nContent.SetRedline(this); + GetBound().SetRedline(this); + GetBound(false).SetRedline(this); m_bDelLastPara = false; m_bIsVisible = true; @@ -1155,8 +1155,8 @@ SwRangeRedline::SwRangeRedline( const SwRangeRedline& rCpy ) m_pContentSect( nullptr ), m_nId( s_nLastId++ ) { - GetBound().nContent.SetRedline(this); - GetBound(false).nContent.SetRedline(this); + GetBound().SetRedline(this); + GetBound(false).SetRedline(this); m_bDelLastPara = false; m_bIsVisible = true;
