diff options
Diffstat (limited to 'sw/source/core/edit/edattr.cxx')
-rw-r--r-- | sw/source/core/edit/edattr.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx index 9818a621b049..dbb4bfa67edf 100644 --- a/sw/source/core/edit/edattr.cxx +++ b/sw/source/core/edit/edattr.cxx @@ -666,8 +666,7 @@ SvtScriptType SwEditShell::GetScriptType() const { for(SwPaM& rPaM : GetCursor()->GetRingContainer()) { - const SwPosition *pStt = rPaM.Start(), - *pEnd = rPaM.End(); + auto [pStt, pEnd] = rPaM.StartEnd(); // SwPosition* if( pStt == pEnd || *pStt == *pEnd ) { const SwTextNode* pTNd = pStt->nNode.GetNode().GetTextNode(); |