diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-01 10:30:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-02 15:11:17 +0200 |
commit | af23d1c1fc407b3d5f020122e2830959d45ffaf1 (patch) | |
tree | 4ff56a1fd767efc3aa05266bc7038e811d1450ee /sw/source/filter/xml/xmlimp.cxx | |
parent | 961d42e1ca1da7f3199d46445b3766d9c6a6c938 (diff) |
introduce SwPosition::GetContentIndex
as part of the process of hiding the internals of SwPosition
largely done by doing:
git grep -lF 'nContent.GetIndex' | xargs perl -pi -e
's/\bnContent\.GetIndex/GetContentIndex/g'
Change-Id: I12684071a6666c365dbadbab2a4b37cf51b274d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137695
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/xmlimp.cxx')
-rw-r--r-- | sw/source/filter/xml/xmlimp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index 6cbfbda7b17a..30b8daaf4840 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -676,7 +676,7 @@ void SwXMLImport::endDocument() pPaM->GetBound().GetNodeIndex() ) { const sal_Int32 nCntPos = - pPaM->GetBound().nContent.GetIndex(); + pPaM->GetBound().GetContentIndex(); pPaM->GetBound().nContent.Assign( pTextNode, pTextNode->GetText().getLength() + nCntPos ); } @@ -684,7 +684,7 @@ void SwXMLImport::endDocument() pPaM->GetBound( false ).GetNodeIndex() ) { const sal_Int32 nCntPos = - pPaM->GetBound( false ).nContent.GetIndex(); + pPaM->GetBound( false ).GetContentIndex(); pPaM->GetBound( false ).nContent.Assign( pTextNode, pTextNode->GetText().getLength() + nCntPos ); } @@ -711,8 +711,8 @@ void SwXMLImport::endDocument() } SwPosition* pPos = pPaM->GetPoint(); - OSL_ENSURE( !pPos->nContent.GetIndex(), "last paragraph isn't empty" ); - if( !pPos->nContent.GetIndex() ) + OSL_ENSURE( !pPos->GetContentIndex(), "last paragraph isn't empty" ); + if( !pPos->GetContentIndex() ) { SwTextNode* pCurrNd; SwNodeOffset nNodeIdx = pPos->GetNodeIndex(); |