nsCOMPtr<nsISupports> isupports = do_QueryInterface(aListenerToRemove); return mSelectionListeners->RemoveElement(isupports) ? NS_OK : NS_ERROR_FAILURE;
return mSelectionListeners.RemoveObject(aListenerToRemove) ? NS_OK : NS_ERROR_FAILURE;
nsTypedSelection::RemoveSelectionListener(nsISelectionListener* aListenerToRemove){  if (!mSelectionListeners)    return NS_ERROR_FAILURE;  if (!aListenerToRemove )    return NS_ERROR_NULL_POINTER;  nsCOMPtr<nsISupports> isupports = do_QueryInterface(aListenerToRemove);  return mSelectionListeners->RemoveElement(isupports) ? NS_OK : NS_ERROR_FAILURE;		// releases}