From 349b2c2de1d3cdcfa809bdd538b3dfb743a8513c Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 12 Sep 2013 18:54:48 +0200 Subject: it's a set, so treat it as such Change-Id: Ia156b27d944bf419a2e0bd45fa65efd4b7f89404 --- lingucomponent/source/lingutil/lingutil.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lingucomponent') 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); -- cgit v1.2.3