Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsXTFInterfaceAggregator.cpp File Reference
#include "nsCOMPtr.h"
#include "xptcall.h"
#include "nsIInterfaceInfo.h"
#include "nsIInterfaceInfoManager.h"

Go to the source code of this file.

Classes

class  nsXTFInterfaceAggregator

Functions

nsresult NS_NewXTFInterfaceAggregator (const nsIID &iid, nsISupports *inner, nsISupports *outer, void **aResult)

Function Documentation

nsresult NS_NewXTFInterfaceAggregator ( const nsIID iid,
nsISupports *  inner,
nsISupports *  outer,
void **  aResult 
)

Definition at line 106 of file nsXTFInterfaceAggregator.cpp.

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

  nsXTFInterfaceAggregator* result = new nsXTFInterfaceAggregator(iid,inner,outer);
  if (!result)
    return NS_ERROR_OUT_OF_MEMORY;

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

Here is the call graph for this function: