summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docbm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-17 13:45:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-17 19:26:39 +0200
commit946d038c71ae09f3ae403474d66c26c959a18e13 (patch)
tree89f6b557ca80a62ae36f66c618c01c8cf02c6105 /sw/source/core/doc/docbm.cxx
parent868b45039d2d168e1c51d971b0d1e0589d4d11eb (diff)
tdf#119840 reduce cost of SwPosition::operator<=
by fetching Start/End from SwPaM at the same time reduces load time by 5% Change-Id: Ie4a06c667aa0950c04e98e46b30cdc4b97f75ba7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137147 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r--sw/source/core/doc/docbm.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 41d7a6dfb080..a59bb372487f 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -1919,8 +1919,7 @@ void DelBookmarks(
for(SwRangeRedline* pRedl : rTable)
{
// Is at position?
- SwPosition *const pRStt = pRedl->Start();
- SwPosition *const pREnd = pRedl->End();
+ auto [pRStt, pREnd] = pRedl->StartEnd();
if( lcl_Greater( *pRStt, rStt, pSttIdx ) && lcl_Lower( *pRStt, rEnd, pEndIdx ))
{