Seems pretty basic to me. Not sure what the heck this function was trying

to be before.
This commit is contained in:
hyatt%netscape.com 1999-05-18 10:27:31 +00:00
Родитель 2ce85ee0fa
Коммит 05c0e4129e
1 изменённых файлов: 3 добавлений и 4 удалений

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

@ -385,10 +385,9 @@ GlobalWindowImpl::GetOpener(nsIDOMWindow** aOpener)
NS_IMETHODIMP
GlobalWindowImpl::SetOpener(nsIDOMWindow* aOpener)
{
if (nsnull == aOpener) {
NS_IF_RELEASE(mOpener);
mOpener = nsnull;
}
NS_IF_RELEASE(mOpener);
mOpener = aOpener;
NS_IF_ADDREF(mOpener);
return NS_OK;
}