diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-29 12:08:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-29 13:20:56 +0200 |
commit | 3df5be9210ec0a057567f7f68aac445a77facb71 (patch) | |
tree | ec1bb8621366296d10bfaabdcf64ff0c04ecac34 /sw/source/core/doc/doclay.cxx | |
parent | af65e892dcf729a4b65198379d2155163460bf5e (diff) |
use more SwPaM::StartEnd
which is more efficient than calling Start() and End() separately
Change-Id: I41c99527bcb37728bb9a87f63ed654e0be3d1f0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137614
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/doclay.cxx')
-rw-r--r-- | sw/source/core/doc/doclay.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx index 6f0d81067955..661875a12cc3 100644 --- a/sw/source/core/doc/doclay.cxx +++ b/sw/source/core/doc/doclay.cxx @@ -470,8 +470,7 @@ static bool lcl_TstFlyRange( const SwPaM* pPam, const SwPosition* pFlyPos, const SwPaM* pTmp = pPam; do { const SwNodeOffset nFlyIndex = pFlyPos->nNode.GetIndex(); - const SwPosition* pPaMStart = pTmp->Start(); - const SwPosition* pPaMEnd = pTmp->End(); + auto [pPaMStart, pPaMEnd] = pTmp->StartEnd(); // SwPosition* const SwNodeOffset nPamStartIndex = pPaMStart->nNode.GetIndex(); const SwNodeOffset nPamEndIndex = pPaMEnd->nNode.GetIndex(); if (RndStdIds::FLY_AT_PARA == nAnchorId) |