From af23d1c1fc407b3d5f020122e2830959d45ffaf1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 1 Aug 2022 10:30:06 +0200 Subject: 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 --- sw/source/filter/writer/writer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/filter/writer') diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx index 1252ff41243d..a810ff47e3e0 100644 --- a/sw/source/filter/writer/writer.cxx +++ b/sw/source/filter/writer/writer.cxx @@ -464,14 +464,14 @@ bool Writer::GetBookmarks(const SwContentNode& rNd, sal_Int32 nStt, const ::sw::mark::IMark& rBkmk = *(it->second); sal_Int32 nContent; if( rBkmk.GetMarkPos().nNode == nNd && - (nContent = rBkmk.GetMarkPos().nContent.GetIndex() ) >= nStt && + (nContent = rBkmk.GetMarkPos().GetContentIndex() ) >= nStt && nContent < nEnd ) { rArr.push_back( &rBkmk ); } else if( rBkmk.IsExpanded() && nNd == rBkmk.GetOtherMarkPos().GetNodeIndex() && (nContent = - rBkmk.GetOtherMarkPos().nContent.GetIndex() ) >= nStt && + rBkmk.GetOtherMarkPos().GetContentIndex() ) >= nStt && nContent < nEnd ) { rArr.push_back( &rBkmk ); -- cgit v1.2.3