[Libreoffice-commits] core.git: editeng/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Dec 24 04:24:40 UTC 2020
editeng/source/editeng/editview.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 85f39dc62b7feb357535582deec1c18f72f9ef0d
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Dec 23 17:27:05 2020 +0100
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Dec 24 05:23:57 2020 +0100
Use range-based for
Change-Id: I0c580cd1a9da75b799357dbf011894ebd7588698
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108181
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
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) ) &&
More information about the Libreoffice-commits
mailing list