sw/source/core/access/acccontext.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 04dd17b2495c5722f478896aa2fa7132cb26edaf Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Tue Apr 29 14:47:49 2025 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Tue Apr 29 23:07:05 2025 +0200 sw a11y: Use range-based for Change-Id: I41d0cdfa50d05a2bc132578b4980a30af218c435 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184774 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Tested-by: Jenkins diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx index efc6d5a5d126..92126437b8cb 100644 --- a/sw/source/core/access/acccontext.cxx +++ b/sw/source/core/access/acccontext.cxx @@ -108,10 +108,8 @@ void SwAccessibleContext::ChildrenScrolled( const SwFrame *pFrame, const bool bVisibleChildrenOnly = SwAccessibleChild( pFrame ).IsVisibleChildrenOnly(); const SwAccessibleChildSList aList( *pFrame, *(GetMap()) ); - SwAccessibleChildSList::const_iterator aIter( aList.begin() ); - while( aIter != aList.end() ) + for (const SwAccessibleChild& rLower : aList) { - const SwAccessibleChild& rLower = *aIter; const SwRect aBox( rLower.GetBox( *(GetMap()) ) ); if (rLower.IsAccessible(GetShell().IsPreview())) { @@ -238,7 +236,6 @@ void SwAccessibleContext::ChildrenScrolled( const SwFrame *pFrame, // There are no unaccessible SdrObjects that need to be notified ChildrenScrolled( rLower.GetSwFrame(), rOldVisArea ); } - ++aIter; } }