sw/source/core/access/accmap.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
New commits: commit 033a4e93643f83a733f1272d2928e64158388175 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Thu Apr 17 10:36:13 2025 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Fri Apr 18 08:27:50 2025 +0200 sw a11y: Use range-based for Change-Id: I6852239fac6b2f88f6b0dec411a4a7b6c105edee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184327 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 74063f098514..59c4b42e302a 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -1268,13 +1268,12 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() //Checked for FlyFrame if (mpFrameMap) { - SwAccessibleContextMap_Impl::iterator aIter = mpFrameMap->begin(); - while( aIter != mpFrameMap->end() ) + for (const auto& rIter : *mpFrameMap) { - const SwFrame *pFrame = (*aIter).first; + const SwFrame *pFrame = rIter.first; if(pFrame->IsFlyFrame()) { - rtl::Reference < SwAccessibleContext > xAcc = (*aIter).second; + rtl::Reference<SwAccessibleContext> xAcc = rIter.second; if(xAcc.is()) { @@ -1312,7 +1311,6 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() } } } - ++aIter; } }