sw/source/core/access/acccontext.cxx |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 9eccccbc71b88665ca2e3012940dedbfa7ab1695
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Thu Apr 24 16:44:36 2025 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Fri Apr 25 07:32:27 2025 +0200

    sw a11y: Use range-based for
    
    Change-Id: I0780b9747288767c7a1ed9f780191fb362c91373
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184589
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/sw/source/core/access/acccontext.cxx 
b/sw/source/core/access/acccontext.cxx
index f11e64a75d2a..73dc8e506536 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -339,12 +339,9 @@ void SwAccessibleContext::InvalidateChildrenStates( const 
SwFrame* _pFrame,
 {
     const SwAccessibleChildSList aVisList( GetVisArea(), *_pFrame, *(GetMap()) 
);
 
-    SwAccessibleChildSList::const_iterator aIter( aVisList.begin() );
-    while( aIter != aVisList.end() )
+    for (const SwAccessibleChild& rLower : aVisList)
     {
-        const SwAccessibleChild& rLower = *aIter;
-        const SwFrame* pLower = rLower.GetSwFrame();
-        if( pLower )
+        if (const SwFrame* pLower = rLower.GetSwFrame())
         {
             ::rtl::Reference< SwAccessibleContext > xAccImpl;
             if (rLower.IsAccessible(GetShell().IsPreview()))
@@ -362,8 +359,6 @@ void SwAccessibleContext::InvalidateChildrenStates( const 
SwFrame* _pFrame,
         {
             // nothing to do ?
         }
-
-        ++aIter;
     }
 }
 

Reply via email to