summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galini.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/gallery2/galini.cxx')
-rw-r--r--svx/source/gallery2/galini.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/gallery2/galini.cxx b/svx/source/gallery2/galini.cxx
index 59c52719dd2d..1775aeb20142 100644
--- a/svx/source/gallery2/galini.cxx
+++ b/svx/source/gallery2/galini.cxx
@@ -77,14 +77,14 @@ OUString GalleryThemeEntry::ReadStrFromIni(const OUString &aKeyName )
/* FIXME-BCP47: what is this supposed to do? */
n = 0;
OUString aLang = aLocale.replace('_','-');
- for( std::vector< OUString >::const_iterator i = aFallbacks.begin();
- i != aFallbacks.end(); ++i, ++n )
+ for( const auto& rFallback : aFallbacks )
{
- SAL_INFO( "svx", "compare '" << aLang << "' with '" << *i << "' rank " << nRank << " vs. " << n );
- if( *i == aLang && n < nRank ) {
+ SAL_INFO( "svx", "compare '" << aLang << "' with '" << rFallback << "' rank " << nRank << " vs. " << n );
+ if( rFallback == aLang && n < nRank ) {
nRank = n; // try to get the most accurate match
aResult = aValue;
}
+ ++n;
}
}
}