Added cast for mWindowList methods

This commit is contained in:
rods@netscape.com
1999-01-26 15:55:44 +00:00
parent a6e7c4d1e5
commit cb2fe9da85

View File

@@ -158,7 +158,7 @@ nsAppShellService::CreateTopLevelWindow(nsIURL* aUrl, nsString& aControllerIID,
} else {
rv = window->Initialize(mAppShell, aUrl, aControllerIID);
if (NS_SUCCEEDED(rv)) {
mWindowList->AppendElement(window);
mWindowList->AppendElement((nsIWebShellContainer*)window);
aResult = window->GetWidget();
}
}
@@ -184,7 +184,7 @@ nsAppShellService::CloseTopLevelWindow(nsIWidget* aWindow)
if (nsnull != data) {
PRBool bFound;
bFound = mWindowList->RemoveElement(window);
bFound = mWindowList->RemoveElement((nsIWebShellContainer*)window);
}