Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsArrayEnumerator.cpp File Reference
#include "nsArrayEnumerator.h"

Go to the source code of this file.

Classes

class  nsCOMArrayEnumerator

Functions

NS_COM nsresult NS_NewArrayEnumerator (nsISimpleEnumerator **result, nsIArray *array)
NS_COM nsresult NS_NewArrayEnumerator (nsISimpleEnumerator **aResult, const nsCOMArray_base &aArray)

Function Documentation

Definition at line 84 of file nsArrayEnumerator.cpp.

{
    nsSimpleArrayEnumerator* enumer = new nsSimpleArrayEnumerator(array);
    if (enumer == nsnull)
        return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(*result = enumer);
    return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 202 of file nsArrayEnumerator.cpp.

{
    nsCOMArrayEnumerator *enumerator = new (aArray) nsCOMArrayEnumerator();
    if (!enumerator) return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(*aResult = enumerator);
    return NS_OK;
}

Here is the call graph for this function: