it's a set, so treat it as such
Change-Id: Ia156b27d944bf419a2e0bd45fa65efd4b7f89404
This commit is contained in:
@@ -160,11 +160,8 @@ std::vector< SvtLinguConfigDictionaryEntry > GetOldStyleDics( const char *pDicTy
|
|||||||
// Thus we first get the language of the dictionary
|
// Thus we first get the language of the dictionary
|
||||||
OUString aLocaleName(aLangTag.getBcp47());
|
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
|
// add the dictionary to the resulting vector
|
||||||
SvtLinguConfigDictionaryEntry aDicEntry;
|
SvtLinguConfigDictionaryEntry aDicEntry;
|
||||||
aDicEntry.aLocations.realloc(1);
|
aDicEntry.aLocations.realloc(1);
|
||||||
|
Reference in New Issue
Block a user