need to be able to clear msgWindow on a url, 481198, r/sr=standard8

This commit is contained in:
David Bienvenu 2009-03-04 11:52:17 -08:00
Родитель 8cd46aa227
Коммит fc32c4dbec
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -213,7 +213,7 @@ NS_IMETHODIMP nsMsgMailNewsUrl::GetMsgWindow(nsIMsgWindow **aMsgWindow)
{
NS_ENSURE_ARG_POINTER(aMsgWindow);
*aMsgWindow = nsnull;
nsCOMPtr<nsIMsgWindow> msgWindow(do_QueryReferent(m_msgWindowWeak));
msgWindow.swap(*aMsgWindow);
return *aMsgWindow ? NS_OK : NS_ERROR_NULL_POINTER;
@ -221,8 +221,7 @@ NS_IMETHODIMP nsMsgMailNewsUrl::GetMsgWindow(nsIMsgWindow **aMsgWindow)
NS_IMETHODIMP nsMsgMailNewsUrl::SetMsgWindow(nsIMsgWindow *aMsgWindow)
{
if (aMsgWindow)
m_msgWindowWeak = do_GetWeakReference(aMsgWindow);
m_msgWindowWeak = do_GetWeakReference(aMsgWindow);
return NS_OK;
}