зеркало из https://github.com/mozilla/pjs.git
Remove the same way we added. Bug 343643, patch by Mikhail Zabaluev
<mhz@altlinux.org>, r+sr=bzbarsky
This commit is contained in:
Родитель
a91273e9df
Коммит
bf43ee731d
|
@ -174,7 +174,8 @@ nsCommandManager::RemoveCommandObserver(nsIObserver *aCommandObserver, const cha
|
|||
if (!commandObservers)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
nsresult removed = commandObservers->RemoveElement(aCommandObserver);
|
||||
nsCOMPtr<nsISupports> observerAsSupports = do_QueryInterface(aCommandObserver);
|
||||
nsresult removed = commandObservers->RemoveElement(observerAsSupports);
|
||||
return (removed) ? NS_OK : NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче