summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-18 15:46:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-19 10:30:07 +0200
commit0649dc97bed5639cee20320ce2ae9b9d764cc99f (patch)
treef92498953f783612916d3a6bb9deb551b701e338 /sw
parent7606a0652cd4adfdfc464ac0595158f6ec193212 (diff)
tdf#119840 use more StartEnd()
Change-Id: Ib3d08b9ad766cd257be0dbd7b4950add0b355bf5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137206 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/DocumentRedlineManager.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx
index 2c8fe11ae062..07f9fe8fcfa6 100644
--- a/sw/source/core/doc/DocumentRedlineManager.cxx
+++ b/sw/source/core/doc/DocumentRedlineManager.cxx
@@ -2497,8 +2497,7 @@ bool DocumentRedlineManager::SplitRedline( const SwPaM& rRange )
for ( ; n < maRedlineTable.size(); ++n)
{
SwRangeRedline * pRedline = maRedlineTable[ n ];
- SwPosition *const pRedlineStart = pRedline->Start();
- SwPosition *const pRedlineEnd = pRedline->End();
+ auto [pRedlineStart, pRedlineEnd] = pRedline->StartEnd();
if (*pRedlineStart <= *pStt && *pStt <= *pRedlineEnd &&
*pRedlineStart <= *pEnd && *pEnd <= *pRedlineEnd)
{