summaryrefslogtreecommitdiff
path: root/cui/source/options/optasian.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/optasian.cxx')
-rw-r--r--cui/source/options/optasian.cxx17
1 files changed, 7 insertions, 10 deletions
diff --git a/cui/source/options/optasian.cxx b/cui/source/options/optasian.cxx
index 05c13741bd19..a6b6297aa4e7 100644
--- a/cui/source/options/optasian.cxx
+++ b/cui/source/options/optasian.cxx
@@ -73,10 +73,9 @@ struct SvxAsianLayoutPage_Impl
SvxAsianLayoutPage_Impl::~SvxAsianLayoutPage_Impl()
{
- SvxForbiddenCharacterMap_Impl::iterator it;
- for( it = aChangedLanguagesMap.begin(); it != aChangedLanguagesMap.end(); ++it )
+ for (auto const& changedLanguage : aChangedLanguagesMap)
{
- delete it->second;
+ delete changedLanguage.second;
}
}
@@ -202,15 +201,13 @@ bool SvxAsianLayoutPage::FillItemSet( SfxItemSet* )
{
try
{
- SvxForbiddenCharacterMap_Impl::iterator itElem;
- for( itElem = pImpl->aChangedLanguagesMap.begin();
- itElem != pImpl->aChangedLanguagesMap.end(); ++itElem )
+ for (auto const& changedLanguage : pImpl->aChangedLanguagesMap)
{
- Locale aLocale( LanguageTag::convertToLocale( itElem->first ));
- if(itElem->second->bRemoved)
+ Locale aLocale( LanguageTag::convertToLocale(changedLanguage.first));
+ if(changedLanguage.second->bRemoved)
pImpl->xForbidden->removeForbiddenCharacters( aLocale );
- else if(itElem->second->pCharacters)
- pImpl->xForbidden->setForbiddenCharacters( aLocale, *( itElem->second->pCharacters ) );
+ else if(changedLanguage.second->pCharacters)
+ pImpl->xForbidden->setForbiddenCharacters( aLocale, *( changedLanguage.second->pCharacters ) );
}
}
catch (const Exception&)