Back to index

lightning-sunbird  0.9+nobinonly
Functions
PromptService.h File Reference
#include "nsError.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nsresult NS_NewPromptServiceFactory (nsIFactory **aFactory)

Function Documentation

Definition at line 887 of file PromptService.cpp.

{
    NS_ENSURE_ARG_POINTER(aFactory);
    *aFactory = nsnull;

    CPromptServiceFactory *result = new CPromptServiceFactory;
    if (!result)
        return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(result);
    *aFactory = result;

    return NS_OK;
}