diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-12-01 15:19:04 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-01 18:26:01 +0100 |
commit | 56d97cdd0af15c90c744d2ac66e879818c073ec6 (patch) | |
tree | 98278957d27659cfa9fe5e9b1a4e2e550637fd73 /sfx2/source/doc/docinf.cxx | |
parent | fff501a3393b459c512ec155e2d2cd935e7885a2 (diff) |
Simplify containers iterations in sfx2, shell
Use range-based loop or replace with STL functions
Change-Id: I42361d6a73d201db8eb6dca09d79768e2d62051d
Reviewed-on: https://gerrit.libreoffice.org/64389
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/doc/docinf.cxx')
-rw-r--r-- | sfx2/source/doc/docinf.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sfx2/source/doc/docinf.cxx b/sfx2/source/doc/docinf.cxx index fa6595631acc..943b767151d1 100644 --- a/sfx2/source/doc/docinf.cxx +++ b/sfx2/source/doc/docinf.cxx @@ -149,11 +149,10 @@ ErrCode LoadOlePropertySet( i_xDocProps->getUserDefinedProperties(), uno::UNO_QUERY_THROW); ::std::vector< sal_Int32 > aPropIds; xCustomSect->GetPropertyIds( aPropIds ); - for( ::std::vector< sal_Int32 >::const_iterator aIt = aPropIds.begin(), - aEnd = aPropIds.end(); aIt != aEnd; ++aIt ) + for( const auto& rPropId : aPropIds ) { - const OUString aPropName = xCustomSect->GetPropertyName( *aIt ); - uno::Any aPropValue = xCustomSect->GetAnyValue( *aIt ); + const OUString aPropName = xCustomSect->GetPropertyName( rPropId ); + uno::Any aPropValue = xCustomSect->GetAnyValue( rPropId ); if( !aPropName.isEmpty() && aPropValue.hasValue() ) { try |