summaryrefslogtreecommitdiff
path: root/linguistic/source/hyphdsp.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-03-18 12:36:02 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-03-25 15:14:44 +0200
commitf365b17bf170c8ed1baae299a2d719774fcc4305 (patch)
tree312378ff5e6ef487ab65d7a1d011307486941c56 /linguistic/source/hyphdsp.cxx
parentdd5df4ccb33048fa5fa8f85b2e6e69a6a225be57 (diff)
Use for-range loops in some modules
jvmaccess, jvmfwk, l10ntools, libreofficekit and linguistic Change-Id: I9d290d1098b25ccb3aee19d2df18c18f4aa65105 Reviewed-on: https://gerrit.libreoffice.org/51495 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'linguistic/source/hyphdsp.cxx')
-rw-r--r--linguistic/source/hyphdsp.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index bb1bdfebdef5..425d29124500 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -251,10 +251,9 @@ Sequence< Locale > SAL_CALL HyphenatorDispatcher::getLocales()
Sequence< Locale > aLocales( static_cast< sal_Int32 >(aSvcMap.size()) );
Locale *pLocales = aLocales.getArray();
- HyphSvcByLangMap_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;
}