Fix solaris bustage -
Add (nsISupports *) cast to nsSupportsArray::RemoveElement call, to remove overloading ambiguity detected on Solaris git-svn-id: svn://10.0.0.236/trunk@64703 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -186,6 +186,9 @@ NS_IMETHODIMP
|
||||
nsConsoleService::UnregisterListener(nsIConsoleListener *listener) {
|
||||
// ignore rv for now, as a comment says it returns prbool instead of
|
||||
// nsresult.
|
||||
mListeners->RemoveElement(listener);
|
||||
|
||||
// Solaris needs the nsISupports cast to avoid confusion with
|
||||
// another nsSupportsArray::RemoveElement overloading.
|
||||
mListeners->RemoveElement((const nsISupports *)listener);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user