зеркало из https://github.com/mozilla/gecko-dev.git
Bug 116413: Backing out patch. This is nsSupportsArray, not nsVoidArray.
(Whomever didn't have Supports inherit from VoidArray should be shot.) Bug to be reopened. Sorry
This commit is contained in:
Родитель
e453d22e0b
Коммит
e6fcf16556
|
@ -101,7 +101,7 @@ nsresult
|
|||
nsMenuStack::GetMenuAt(PRInt32 aIndex, nsIMenu **outMenu)
|
||||
{
|
||||
// I'd prefer to fix the caller, but this will be safe
|
||||
nsCOMPtr<nsISupports> elementPtr = getter_AddRefs(mMenuArray.SafeElementAt(aIndex));
|
||||
nsCOMPtr<nsISupports> elementPtr = getter_AddRefs(mMenuArray.ElementAt(aIndex));
|
||||
if (!elementPtr)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
|
@ -113,7 +113,7 @@ PRBool
|
|||
nsMenuStack::HaveMenuAt(PRInt32 aIndex)
|
||||
{
|
||||
// I'd prefer to fix the caller, but this will be safe
|
||||
nsCOMPtr<nsISupports> elementPtr = getter_AddRefs(mMenuArray.SafeElementAt(aIndex));
|
||||
nsCOMPtr<nsISupports> elementPtr = getter_AddRefs(mMenuArray.ElementAt(aIndex));
|
||||
if (!elementPtr)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче