From d7e72bef24b911ae2c5639535869c970c994878b Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 12 Sep 2013 00:39:25 +0200 Subject: certainly it is enough to obtain the disables dictionaries once? Change-Id: I323719e9c74d7c117062fb225a890a5e65c042ab --- unotools/source/config/lingucfg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index 47bcadc36163..ebed68eadfa7 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -1050,6 +1050,8 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari sal_Int32 nLen = aElementNames.getLength(); const OUString *pElementNames = aElementNames.getConstArray(); + const uno::Sequence< OUString > aDisabledDics( GetDisabledDictionaries() ); + SvtLinguConfigDictionaryEntry aDicEntry; for (sal_Int32 i = 0; i < nLen; ++i) { @@ -1059,7 +1061,6 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari { // check if it is active or not bool bDicIsActive = true; - const uno::Sequence< OUString > aDisabledDics( GetDisabledDictionaries() ); for (sal_Int32 k = 0; bDicIsActive && k < aDisabledDics.getLength(); ++k) { if (aDisabledDics[k] == pElementNames[i]) -- cgit