mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
bug 225106 : remove redundant charset alias resoultion code (r=smontagu, sr=bz)
This commit is contained in:
parent
6ccc5150bf
commit
5696633bbe
@ -431,7 +431,9 @@ nsCharsetConverterManager::GetCharsetLangGroup(const char * aCharset,
|
||||
{
|
||||
// resolve the charset first
|
||||
nsCAutoString charset;
|
||||
GetCharsetAlias(aCharset, charset);
|
||||
|
||||
nsresult rv = GetCharsetAlias(aCharset, charset);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// fully qualify to possibly avoid vtable call
|
||||
return nsCharsetConverterManager::GetCharsetLangGroupRaw(charset.get(),
|
||||
@ -452,13 +454,8 @@ nsCharsetConverterManager::GetCharsetLangGroupRaw(const char * aCharset,
|
||||
if (NS_FAILED(res)) return res;
|
||||
}
|
||||
|
||||
nsCAutoString alias;
|
||||
res = GetCharsetAlias(aCharset, alias);
|
||||
|
||||
if (NS_FAILED(res)) return res;
|
||||
|
||||
nsAutoString langGroup;
|
||||
res = GetBundleValue(mDataBundle, alias.get(), NS_LITERAL_STRING(".LangGroup"), langGroup);
|
||||
res = GetBundleValue(mDataBundle, aCharset, NS_LITERAL_STRING(".LangGroup"), langGroup);
|
||||
|
||||
*aResult = NS_NewAtom(langGroup);
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user