summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-08-30 11:56:25 +0200
committerEike Rathke <erack@redhat.com>2013-08-30 12:02:53 +0200
commit93e9f05c26e23cf99f80ebd55dc7c22335cad979 (patch)
tree94683ce4375acc98d5ca9b6c132fb72a27929e80 /i18nlangtag
parent3a8f35042594fe0d91c6e41565437727cf5ee896 (diff)
microoptimization
Change-Id: I773262f018519f5816c029df3da92a9903e53165
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/isolang/isolang.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx
index e4ab25c69f52..50c154b93c7b 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -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();
}
}