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:
rjesup%wgate.com 2001-12-22 02:46:24 +00:00
Родитель e453d22e0b
Коммит e6fcf16556
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;