microoptimization

Change-Id: I773262f018519f5816c029df3da92a9903e53165
This commit is contained in:
Eike Rathke 2013-08-30 11:56:25 +02:00
parent 3a8f350425
commit 93e9f05c26

View file

@ -828,13 +828,13 @@ void MsLangId::Conversion::convertLanguageToLocaleImpl( LanguageType nLang,
{
// Check for country only if there is more than lll-Ssss-CC in tag
// string, else we would had matched it already.
if (!rLocale.Country.isEmpty() && rLocale.Variant.getLength() > 11)
if (!aUpperCountry.isEmpty() && rLocale.Variant.getLength() > 11)
{
for (const IsoLanguageScriptCountryEntry* pScriptEntry = pFirstScript;
pScriptEntry->mnLang != LANGUAGE_DONTKNOW; ++pScriptEntry)
{
if (pScriptEntry->startsInIgnoreAsciiCase( rLocale.Variant) &&
rLocale.Country.equalsIgnoreAsciiCaseAscii( pScriptEntry->maCountry))
if (aUpperCountry.equalsAscii( pScriptEntry->maCountry) &&
pScriptEntry->startsInIgnoreAsciiCase( rLocale.Variant))
return pScriptEntry->getLocale();
}
}