summaryrefslogtreecommitdiff
path: root/comphelper/source/property/propertysetinfo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/property/propertysetinfo.cxx')
-rw-r--r--comphelper/source/property/propertysetinfo.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/comphelper/source/property/propertysetinfo.cxx b/comphelper/source/property/propertysetinfo.cxx
index 90985f24854b..a97b8abd0ae4 100644
--- a/comphelper/source/property/propertysetinfo.cxx
+++ b/comphelper/source/property/propertysetinfo.cxx
@@ -93,11 +93,9 @@ Sequence< Property > PropertyMapImpl::getProperties() throw()
maProperties = Sequence< Property >( maPropertyMap.size() );
Property* pProperties = maProperties.getArray();
- PropertyMap::iterator aIter = maPropertyMap.begin();
- const PropertyMap::iterator aEnd = maPropertyMap.end();
- while( aIter != aEnd )
+ for( const auto& rProperty : maPropertyMap )
{
- PropertyMapEntry const * pEntry = (*aIter).second;
+ PropertyMapEntry const * pEntry = rProperty.second;
pProperties->Name = pEntry->maName;
pProperties->Handle = pEntry->mnHandle;
@@ -105,7 +103,6 @@ Sequence< Property > PropertyMapImpl::getProperties() throw()
pProperties->Attributes = pEntry->mnAttributes;
++pProperties;
- ++aIter;
}
}