need to be able to clear msgWindow on a url, 481198, r/sr=standard8
This commit is contained in:
Родитель
8cd46aa227
Коммит
fc32c4dbec
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче