sw/source/core/layout/layact.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit ba8f4bff6015013013df652efbfaf4d9ae10c881 Author: Kira Tubo <kira.t...@gmail.com> AuthorDate: Wed Jan 10 15:31:19 2024 -0800 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Fri Jan 12 00:39:32 2024 +0100 tdf#145538 Use range based for loops Change-Id: I2e31b6ff335b5884a5d02d53bafef4315ad0fe68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161902 Tested-by: Jenkins Reviewed-by: Hossein <hoss...@libreoffice.org> diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx index 747470129c96..34c9df1ace1d 100644 --- a/sw/source/core/layout/layact.cxx +++ b/sw/source/core/layout/layact.cxx @@ -1299,14 +1299,14 @@ bool SwLayAction::FormatLayout( OutputDevice *pRenderContext, SwLayoutFrame *pLa { SwRegionRects aRegion( aOldRect ); aRegion -= aPaint; - for ( size_t i = 0; i < aRegion.size(); ++i ) - m_pImp->GetShell()->AddPaintRect( aRegion[i] ); + for ( auto const& aRect : aRegion ) + m_pImp->GetShell()->AddPaintRect( aRect ); aRegion.ChangeOrigin( aPaint ); aRegion.clear(); aRegion.push_back( aPaint ); aRegion -= aOldRect; - for ( size_t i = 0; i < aRegion.size(); ++i ) - m_pImp->GetShell()->AddPaintRect( aRegion[i] ); + for ( auto const& aRect : aRegion ) + m_pImp->GetShell()->AddPaintRect( aRect ); } } else