sw/source/core/access/acctable.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
New commits: commit 5018d3a4c321f411ef27d4797ee6050bf634c9ef Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Thu Apr 17 07:53:30 2025 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Fri Apr 18 08:22:46 2025 +0200 sw a11y: Use range-based for in SwAccessibleTableData_Impl Change-Id: I20ca3ac85ac912a05571ffc5c7468313ae5a25f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184305 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx index 7d59a97480d4..cbe190f5e7be 100644 --- a/sw/source/core/access/acctable.cxx +++ b/sw/source/core/access/acctable.cxx @@ -131,11 +131,8 @@ public: void SwAccessibleTableData_Impl::CollectData( const SwFrame *pFrame ) { const SwAccessibleChildSList aList( *pFrame, mrAccMap ); - SwAccessibleChildSList::const_iterator aIter( aList.begin() ); - SwAccessibleChildSList::const_iterator aEndIter( aList.end() ); - while( aIter != aEndIter ) + for (const SwAccessibleChild& rLower : aList) { - const SwAccessibleChild& rLower = *aIter; const SwFrame *pLower = rLower.GetSwFrame(); if( pLower ) { @@ -158,7 +155,6 @@ void SwAccessibleTableData_Impl::CollectData( const SwFrame *pFrame ) CollectData( pLower ); } } - ++aIter; } } @@ -207,11 +203,8 @@ void SwAccessibleTableData_Impl::GetSelection( bool bColumns ) const { const SwAccessibleChildSList aList( *pFrame, mrAccMap ); - SwAccessibleChildSList::const_iterator aIter( aList.begin() ); - SwAccessibleChildSList::const_iterator aEndIter( aList.end() ); - while( aIter != aEndIter ) + for (const SwAccessibleChild& rLower : aList) { - const SwAccessibleChild& rLower = *aIter; const SwFrame *pLower = rLower.GetSwFrame(); OSL_ENSURE( pLower, "child should be a frame" ); const SwRect aBox = rLower.GetBox( mrAccMap ); @@ -259,7 +252,6 @@ void SwAccessibleTableData_Impl::GetSelection( } } } - ++aIter; } }