diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 09:05:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 12:29:46 +0200 |
commit | 639511d7194726b188a2ecae9b3489a250532d03 (patch) | |
tree | af8195623e940c171934b9bbbe16acbc38e0d378 /include/vbahelper/vbacollectionimpl.hxx | |
parent | cf46500243c51071227e08c5067041e414180ebc (diff) |
use for-range on Sequence in i18npool..sd
Change-Id: I19eba57bc6058c317473d0746f06699a09ba2830
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94608
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vbahelper/vbacollectionimpl.hxx')
-rw-r--r-- | include/vbahelper/vbacollectionimpl.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx index e2441457643f..9bb537e84f17 100644 --- a/include/vbahelper/vbacollectionimpl.hxx +++ b/include/vbahelper/vbacollectionimpl.hxx @@ -248,13 +248,12 @@ protected: if( mbIgnoreCase ) { - css::uno::Sequence< OUString > sElementNames = m_xNameAccess->getElementNames(); - for( sal_Int32 i = 0; i < sElementNames.getLength(); i++ ) + const css::uno::Sequence< OUString > sElementNames = m_xNameAccess->getElementNames(); + for( const OUString& rName : sElementNames ) { - OUString aName = sElementNames[i]; - if( aName.equalsIgnoreAsciiCase( sIndex ) ) + if( rName.equalsIgnoreAsciiCase( sIndex ) ) { - return createCollectionObject( m_xNameAccess->getByName( aName ) ); + return createCollectionObject( m_xNameAccess->getByName( rName ) ); } } } |