summaryrefslogtreecommitdiff
path: root/basic/source/uno/dlgcont.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-15 09:56:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-15 14:00:48 +0200
commit898cbb22f07a2c1487700326f134fe54e7a13f4d (patch)
treed5bdd749ca565f74976653c7cac90e1eaecc74d6 /basic/source/uno/dlgcont.cxx
parent10cdeed12ef834f5df3b6577c1d9efcc811d6938 (diff)
use for-range on Sequence in basctl..canvas
Change-Id: Idad3d8fbe785c7b1b8b287a3227372adb2757de8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94260 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/uno/dlgcont.cxx')
-rw-r--r--basic/source/uno/dlgcont.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx
index c07fa682c909..eee4e8300339 100644
--- a/basic/source/uno/dlgcont.cxx
+++ b/basic/source/uno/dlgcont.cxx
@@ -213,12 +213,12 @@ void SfxDialogLibraryContainer::storeLibrariesToStorage( const uno::Reference< e
// we need to export out any embedded image object(s)
// associated with any Dialogs. First, we need to actually gather any such urls
// for each dialog in this container
- Sequence< OUString > sLibraries = getElementNames();
- for ( sal_Int32 i=0; i < sLibraries.getLength(); ++i )
+ const Sequence< OUString > sLibraries = getElementNames();
+ for ( const OUString& rName : sLibraries )
{
- loadLibrary( sLibraries[ i ] );
+ loadLibrary( rName );
Reference< XNameContainer > xLib;
- getByName( sLibraries[ i ] ) >>= xLib;
+ getByName( rName ) >>= xLib;
if ( xLib.is() )
{
Sequence< OUString > sDialogs = xLib->getElementNames();