diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-12 18:54:48 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-12 19:31:44 +0200 |
commit | 349b2c2de1d3cdcfa809bdd538b3dfb743a8513c (patch) | |
tree | e5de3d947dcdd41b7dde799e97fd7ac824bc0a83 /lingucomponent | |
parent | 3f31bdd67a82056b87b8b93e54a953983ba048bc (diff) |
it's a set, so treat it as such
Change-Id: Ia156b27d944bf419a2e0bd45fa65efd4b7f89404
Diffstat (limited to 'lingucomponent')
-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); |