svx/source/table/tablelayouter.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 6fa141074beea30b68615764221a668f58bdf222 Author: Mohamed Ali <mohmedali1462...@gmail.com> AuthorDate: Fri Nov 22 13:46:01 2024 +0200 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Fri Dec 6 15:40:17 2024 +0100 tdf#145538 Use range based for loops Change-Id: Iee3052f2fcc693b78c32fbae581f22527d64ffbd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177082 Tested-by: Jenkins Reviewed-by: Hossein <hoss...@libreoffice.org> diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx index 8756734ff288..e165f5219480 100644 --- a/svx/source/table/tablelayouter.cxx +++ b/svx/source/table/tablelayouter.cxx @@ -1048,10 +1048,10 @@ void TableLayouter::ResizeBorderLayout( BorderLineMap& rMap ) if( sal::static_int_cast<sal_Int32>(rMap.size()) != nColCount ) rMap.resize( nColCount ); - for( sal_Int32 nCol = 0; nCol < nColCount; nCol++ ) + for( auto& nCol : rMap ) { - if( sal::static_int_cast<sal_Int32>(rMap[nCol].size()) != nRowCount ) - rMap[nCol].resize( nRowCount ); + if( sal::static_int_cast<sal_Int32>(nCol.size()) != nRowCount ) + nCol.resize( nRowCount ); } }