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   <hossein@libreoffice.org>
This commit is contained in:
Mohamed Ali 2024-11-22 13:46:01 +02:00 committed by Hossein
parent 8203f31040
commit 6fa141074b

View file

@ -1048,10 +1048,10 @@ void TableLayouter::ResizeBorderLayout( BorderLineMap& rMap )
if( sal::static_int_cast<sal_Int32>(rMap.size()) != nColCount ) if( sal::static_int_cast<sal_Int32>(rMap.size()) != nColCount )
rMap.resize( 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 ) if( sal::static_int_cast<sal_Int32>(nCol.size()) != nRowCount )
rMap[nCol].resize( nRowCount ); nCol.resize( nRowCount );
} }
} }