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/undo/unins.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/undo/unins.cxx')
-rw-r--r-- | sw/source/core/undo/unins.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/undo/unins.cxx b/sw/source/core/undo/unins.cxx index 8338bfe44de2..762a2c12d5b2 100644 --- a/sw/source/core/undo/unins.cxx +++ b/sw/source/core/undo/unins.cxx @@ -587,8 +587,7 @@ SwUndoReplace::Impl::Impl( , m_bRegExp(bRegExp) { - const SwPosition * pStt( rPam.Start() ); - const SwPosition * pEnd( rPam.End() ); + auto [pStt, pEnd] = rPam.StartEnd(); // SwPosition* m_nSttNd = m_nEndNd = pStt->nNode.GetIndex(); m_nSttCnt = pStt->nContent.GetIndex(); |