diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-17 14:06:00 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-17 14:07:33 +0200 |
commit | 91a1e61ec6ad00b1ed91af47e2fde90b7365cc06 (patch) | |
tree | 981a1d17d76409373663df0c2d496133fa589f8c /lingucomponent | |
parent | drop unused hids (diff) | |
download | core-91a1e61ec6ad00b1ed91af47e2fde90b7365cc06.tar.gz core-91a1e61ec6ad00b1ed91af47e2fde90b7365cc06.zip |
clearly it's enough to obtain the const array once
Change-Id: I6d9ffef6b052012d09ff54d2a457e1314e6239ee
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |