diff options
-rw-r--r-- | editeng/source/editeng/editview.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index a17f76d6d492..f044671e1c17 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -133,10 +133,8 @@ LanguageType EditView::CheckLanguage( lang::Locale a3( LanguageTag::convertToLocale( aLangList[3] ) ); #endif - sal_Int32 const nCount = SAL_N_ELEMENTS(aLangList); - for (sal_Int32 i = 0; i < nCount; i++) + for (const LanguageType& nTmpLang : aLangList) { - LanguageType nTmpLang = aLangList[i]; if (nTmpLang != LANGUAGE_NONE && nTmpLang != LANGUAGE_DONTKNOW) { if (xSpell->hasLanguage( static_cast<sal_uInt16>(nTmpLang) ) && |