Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsSupportsArrayEnumerator.cpp File Reference
#include "nsSupportsArrayEnumerator.h"
#include "nsISupportsArray.h"

Go to the source code of this file.

Functions

NS_COM nsresult NS_NewISupportsArrayEnumerator (nsISupportsArray *array, nsIBidirectionalEnumerator **aInstancePtrResult)

Function Documentation

Definition at line 134 of file nsSupportsArrayEnumerator.cpp.

{
  if (aInstancePtrResult == 0)
    return NS_ERROR_NULL_POINTER;
  nsSupportsArrayEnumerator* e = new nsSupportsArrayEnumerator(array);
  if (e == 0)
    return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(e);
  *aInstancePtrResult = e;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: