lingucomponent/source/spellcheck/spell/sspellimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 91a1e61ec6ad00b1ed91af47e2fde90b7365cc06 Author: Eike Rathke <er...@redhat.com> Date: Tue Sep 17 14:06:00 2013 +0200 clearly it's enough to obtain the const array once Change-Id: I6d9ffef6b052012d09ff54d2a457e1314e6239ee diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 9d48775..7e1a1c5 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -243,10 +243,10 @@ sal_Bool SAL_CALL SpellChecker::hasLocale(const Locale& rLocale) if (!aSuppLocales.getLength()) getLocales(); + const Locale *pLocale = aSuppLocales.getConstArray(); sal_Int32 nLen = aSuppLocales.getLength(); for (sal_Int32 i = 0; i < nLen; ++i) { - const Locale *pLocale = aSuppLocales.getConstArray(); if (rLocale == pLocale[i]) { bRes = sal_True; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits