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:
parent
8203f31040
commit
6fa141074b
1 changed files with 3 additions and 3 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue