performance tweak --> header parser is supposed to be a service not a component.

r=bienvenu
This commit is contained in:
mscott%netscape.com 2000-01-09 22:00:03 +00:00
Родитель 815841f538
Коммит a4be3b0f68
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -413,13 +413,9 @@ nsParseMailMessageState::nsParseMailMessageState()
m_IgnoreXMozillaStatus = PR_FALSE;
m_state = nsIMsgParseMailMsgState::ParseBodyState;
Clear();
NS_DEFINE_CID(kMsgHeaderParserCID, NS_MSGHEADERPARSER_CID);
NS_DEFINE_CID(kMsgHeaderParserCID, NS_MSGHEADERPARSER_CID);
nsComponentManager::CreateInstance(kMsgHeaderParserCID,
nsnull,
nsIMsgHeaderParser::GetIID(),
(void **) getter_AddRefs(m_HeaderAddressParser));
m_HeaderAddressParser = do_GetService(kMsgHeaderParserCID);
}
nsParseMailMessageState::~nsParseMailMessageState()