diff options
Diffstat (limited to 'comphelper/source/container/namecontainer.cxx')
-rw-r--r-- | comphelper/source/container/namecontainer.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/comphelper/source/container/namecontainer.cxx b/comphelper/source/container/namecontainer.cxx index e23cc1b793cd..294a5f7ee7ed 100644 --- a/comphelper/source/container/namecontainer.cxx +++ b/comphelper/source/container/namecontainer.cxx @@ -160,15 +160,12 @@ Sequence< OUString > SAL_CALL NameContainer::getElementNames( ) { MutexGuard aGuard( maMutex ); - SvGenericNameContainerMapImpl::iterator aIter = maProperties.begin(); - const SvGenericNameContainerMapImpl::iterator aEnd = maProperties.end(); - Sequence< OUString > aNames( maProperties.size() ); OUString* pNames = aNames.getArray(); - while( aIter != aEnd ) + for( const auto& rProperty : maProperties ) { - *pNames++ = (*aIter++).first; + *pNames++ = rProperty.first; } return aNames; |