Warren's changes broke component creation for nsIMsgMailSession and nsIUrlListenerManager. Restore these so our code runs correctly.

This commit is contained in:
mscott%netscape.com 1999-03-10 03:49:39 +00:00
Родитель 6cea859f1f
Коммит 6022433002
1 изменённых файлов: 12 добавлений и 8 удалений

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

@ -189,19 +189,23 @@ nsMsgFactory::CreateInstance(nsISupports *aOuter,
{
nsUrlListenerManager * listener = nsnull;
listener = new nsUrlListenerManager();
if (listener == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
if (listener == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
listener->QueryInterface(nsIUrlListenerManager::GetIID(), (void **) &inst);
}
else if (mClassID.Equals(kCMsgMailSessionCID))
{
nsMsgMailSession * session = new nsMsgMailSession();
if (session == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
if (session == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
session->QueryInterface(nsIMsgMailSession::GetIID(), (void **) &inst);
}
else if (mClassID.Equals(kCMsgAppCoreCID))
{
res = NS_NewMsgAppCore((nsIDOMMsgAppCore **)&inst);
if (NS_FAILED(res)) return res;
}
else if (mClassID.Equals(kCMsgAppCoreCID)) {
res = NS_NewMsgAppCore((nsIDOMMsgAppCore **)&inst);
if (NS_FAILED(res)) return res;
}
// End of checking the interface ID code....
if (inst)