diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-25 12:05:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-25 15:28:39 +0200 |
commit | 9fdb06d65a8f2c3401392bffee9c4639e178aada (patch) | |
tree | 419c56ec5b0936212c8621e3ed2822559963e9c7 /sw/source/core/txtnode/txtedt.cxx | |
parent | 493b62c6805125b7f3ebfbd2b4b73a7d49aa0f67 (diff) |
rename SwIndex->SwContentIndex
to help my poor brain with the different kinds of index we have floating
around
Change-Id: I47ed223922170687d7e07812445aed66b3218230
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137404
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/txtnode/txtedt.cxx')
-rw-r--r-- | sw/source/core/txtnode/txtedt.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index 20d3e483408e..6d90143f59d4 100644 --- a/sw/source/core/txtnode/txtedt.cxx +++ b/sw/source/core/txtnode/txtedt.cxx @@ -365,7 +365,7 @@ static bool lcl_HaveCommonAttributes( IStyleAccess& rStyleAccess, */ void SwTextNode::RstTextAttr( - const SwIndex &rIdx, + const SwContentIndex &rIdx, const sal_Int32 nLen, const sal_uInt16 nWhich, const SfxItemSet* pSet, @@ -1999,7 +1999,7 @@ void SwTextNode::ReplaceTextOnly( sal_Int32 nPos, sal_Int32 nLen, while( nI + nCnt < nTLen && nOff == pOffsets[ nI + nCnt ] ) ++nCnt; - Update( SwIndex( this, nMyOff ), nCnt ); + Update( SwContentIndex( this, nMyOff ), nCnt ); nMyOff = nOff; //nMyOff -= nCnt; nI += nCnt - 1; @@ -2007,14 +2007,14 @@ void SwTextNode::ReplaceTextOnly( sal_Int32 nPos, sal_Int32 nLen, else if( nOff > nMyOff ) { // something is deleted - Update( SwIndex( this, nMyOff+1 ), nOff - nMyOff, true ); + Update( SwContentIndex( this, nMyOff+1 ), nOff - nMyOff, true ); nMyOff = nOff; } ++nMyOff; } if( nMyOff < nLen ) // something is deleted at the end - Update( SwIndex( this, nMyOff ), nLen - nMyOff, true ); + Update( SwContentIndex( this, nMyOff ), nLen - nMyOff, true ); // notify the layout! SwDelText aDelHint( nPos, nTLen ); |