it's a set, so treat it as such

Change-Id: Ia156b27d944bf419a2e0bd45fa65efd4b7f89404
This commit is contained in:
Eike Rathke
2013-09-12 18:54:48 +02:00
parent 3f31bdd67a
commit 349b2c2de1

View File

@@ -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);