Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsDefaultResourceFactory.cpp File Reference
#include "nsRDFResource.h"

Go to the source code of this file.

Functions

nsresult NS_NewDefaultResource (nsIRDFResource **aResult)

Function Documentation

Definition at line 49 of file nsDefaultResourceFactory.cpp.

{
    NS_PRECONDITION(aResult != nsnull, "null ptr");
    if (! aResult)
        return NS_ERROR_NULL_POINTER;

    nsRDFResource* resource = new nsRDFResource();
    if (! resource)
        return NS_ERROR_OUT_OF_MEMORY;

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

Here is the call graph for this function: