summaryrefslogtreecommitdiff
path: root/linguistic/source/thesdsp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic/source/thesdsp.cxx')
-rw-r--r--linguistic/source/thesdsp.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/linguistic/source/thesdsp.cxx b/linguistic/source/thesdsp.cxx
index d81fbf4f79ef..9b34cf300204 100644
--- a/linguistic/source/thesdsp.cxx
+++ b/linguistic/source/thesdsp.cxx
@@ -83,10 +83,9 @@ Sequence< Locale > SAL_CALL
Sequence< Locale > aLocales( static_cast< sal_Int32 >(aSvcMap.size()) );
Locale *pLocales = aLocales.getArray();
- ThesSvcByLangMap_t::const_iterator aIt;
- for (aIt = aSvcMap.begin(); aIt != aSvcMap.end(); ++aIt)
+ for (auto const& elem : aSvcMap)
{
- *pLocales++ = LanguageTag::convertToLocale( aIt->first );
+ *pLocales++ = LanguageTag::convertToLocale(elem.first);
}
return aLocales;
}