diff options
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(); |