summaryrefslogtreecommitdiff
path: root/sw/source/filter/writer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 10:30:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 15:11:17 +0200
commitaf23d1c1fc407b3d5f020122e2830959d45ffaf1 (patch)
tree4ff56a1fd767efc3aa05266bc7038e811d1450ee /sw/source/filter/writer
parent961d42e1ca1da7f3199d46445b3766d9c6a6c938 (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/writer')
-rw-r--r--sw/source/filter/writer/writer.cxx4
1 files changed, 2 insertions, 2 deletions
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 );