Kaydet (Commit) 93e9f05c authored tarafından Eike Rathke's avatar Eike Rathke

microoptimization

Change-Id: I773262f018519f5816c029df3da92a9903e53165
üst 3a8f3504
......@@ -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();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment