From 91a1e61ec6ad00b1ed91af47e2fde90b7365cc06 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 17 Sep 2013 14:06:00 +0200 Subject: clearly it's enough to obtain the const array once Change-Id: I6d9ffef6b052012d09ff54d2a457e1314e6239ee --- lingucomponent/source/spellcheck/spell/sspellimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 9d487756070b..7e1a1c50d2e6 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; -- cgit