diff options
Diffstat (limited to 'basic/source/uno/namecont.cxx')
-rw-r--r-- | basic/source/uno/namecont.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index a76d47a23723..4a31ce5b2709 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -2014,22 +2014,16 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto { // remove const Sequence< OUString > aRemoveNames( xSourceLibrariesStor->getElementNames() ); - for ( const OUString* pRemoveName = aRemoveNames.getConstArray(); - pRemoveName != aRemoveNames.getConstArray() + aRemoveNames.getLength(); - ++pRemoveName - ) + for ( auto const & removeName : aRemoveNames ) { - xSourceLibrariesStor->removeElement( *pRemoveName ); + xSourceLibrariesStor->removeElement( removeName ); } // copy const Sequence< OUString > aCopyNames( xTargetLibrariesStor->getElementNames() ); - for ( const OUString* pCopyName = aCopyNames.getConstArray(); - pCopyName != aCopyNames.getConstArray() + aCopyNames.getLength(); - ++pCopyName - ) + for ( auto const & copyName : aCopyNames ) { - xTargetLibrariesStor->copyElementTo( *pCopyName, xSourceLibrariesStor, *pCopyName ); + xTargetLibrariesStor->copyElementTo( copyName, xSourceLibrariesStor, copyName ); } } |