NS_GENERIC_FACTORY_CONSTRUCTOR(PlugletEngine)
PlugletEngineConstructor(nsISupports *aOuter, REFNSIID aIID, void **aResult) { nsresult rv; PlugletEngine * inst; if ( !CheckForXTSymbol() ) { rv = NS_ERROR_FAILURE; return rv; } if (NULL == aResult) { rv = NS_ERROR_NULL_POINTER; return rv; } *aResult = NULL; if (NULL != aOuter) { rv = NS_ERROR_NO_AGGREGATION; return rv; } NS_NEWXPCOM(inst, PlugletEngine); if (NULL == inst) { rv = NS_ERROR_OUT_OF_MEMORY; return rv; } NS_ADDREF(inst); rv = inst->QueryInterface(aIID, aResult); NS_RELEASE(inst); return rv; }
NS_GENERIC_FACTORY_CONSTRUCTOR(PlugletEngine)