diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-11-18 13:43:28 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-18 17:36:54 +0100 |
commit | 587ef41f75b8ea0bcd03366178d42a324dcf481c (patch) | |
tree | a672c557221d4fec8abbaf83568ed9e7242323a5 /svx/source/table/propertyset.cxx | |
parent | 8b83659bb8f3368a1df949d5bc84d7b2dd0370b4 (diff) |
Simplify containers iterations in svx/source/[s-u]*
Use range-based loop or replace with STL functions
Change-Id: I2ec3e58cc46c9286ef863c732912ca7a729bab62
Reviewed-on: https://gerrit.libreoffice.org/63522
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/table/propertyset.cxx')
-rw-r--r-- | svx/source/table/propertyset.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/table/propertyset.cxx b/svx/source/table/propertyset.cxx index 1b5e081e444b..643a4879d907 100644 --- a/svx/source/table/propertyset.cxx +++ b/svx/source/table/propertyset.cxx @@ -42,10 +42,8 @@ void FastPropertySetInfo::addProperties( const PropertyVector& rProps ) sal_uInt32 nIndex = maProperties.size(); sal_uInt32 nCount = rProps.size(); maProperties.resize( nIndex + nCount ); - PropertyVector::const_iterator aIter( rProps.begin() ); - while( nCount-- ) + for( const Property& rProperty : rProps ) { - const Property& rProperty = (*aIter++); maProperties[nIndex] = rProperty; maMap[ rProperty.Name ] = nIndex++; } |