diff options
-rw-r--r-- | lingucomponent/source/lingutil/lingutil.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx index 590206c6c318..a8b3a90c5a80 100644 --- a/lingucomponent/source/lingutil/lingutil.cxx +++ b/lingucomponent/source/lingutil/lingutil.cxx @@ -160,11 +160,8 @@ std::vector< SvtLinguConfigDictionaryEntry > GetOldStyleDics( const char *pDicTy // Thus we first get the language of the dictionary OUString aLocaleName(aLangTag.getBcp47()); - if (aDicLangInUse.count(aLocaleName) == 0) + if (aDicLangInUse.insert(aLocaleName).second) { - // remember the new language in use - aDicLangInUse.insert(aLocaleName); - // add the dictionary to the resulting vector SvtLinguConfigDictionaryEntry aDicEntry; aDicEntry.aLocations.realloc(1); |