mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
performance tweak --> header parser is supposed to be a service not a component.
r=bienvenu
This commit is contained in:
parent
d7cad2f52a
commit
b0437cf343
@ -75,11 +75,7 @@ static nsresult RemoveDuplicateAddresses(const char * addresses, const char * an
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIMsgHeaderParser> parser;
|
||||
nsComponentManager::CreateInstance(kHeaderParserCID,
|
||||
nsnull,
|
||||
nsCOMTypeInfo<nsIMsgHeaderParser>::GetIID(),
|
||||
getter_AddRefs(parser));
|
||||
nsCOMPtr<nsIMsgHeaderParser> parser = do_GetService(kHeaderParserCID);;
|
||||
if (parser)
|
||||
rv= parser->RemoveDuplicateAddresses(msgCompHeaderInternalCharset(), addresses, anothersAddresses, removeAliasesToMe, newAddress);
|
||||
else
|
||||
@ -933,8 +929,8 @@ nsresult nsMsgCompose::CreateMessage(const PRUnichar * originalMsgURI,
|
||||
if (NS_SUCCEEDED(rv = nsMsgI18NDecodeMimePartIIStr(recipStr, encodedCharset, decodedString)))
|
||||
if (NS_SUCCEEDED(rv = ConvertFromUnicode(msgCompHeaderInternalCharset(), decodedString, &aCString)))
|
||||
{
|
||||
char * resultStr = nsnull;
|
||||
nsCString addressToBeRemoved = m_compFields->GetTo();
|
||||
char * resultStr = nsnull;
|
||||
nsCString addressToBeRemoved = m_compFields->GetTo();
|
||||
|
||||
if (m_identity)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user