Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsXTFWeakTearoff.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  nsXTFWeakTearoff

Functions

nsresult NS_NewXTFWeakTearoff (const nsIID &iid, nsISupports *obj, nsISupports **aResult)

Function Documentation

nsresult NS_NewXTFWeakTearoff ( const nsIID iid,
nsISupports *  obj,
nsISupports **  aResult 
)

Definition at line 98 of file nsXTFWeakTearoff.cpp.

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

  nsXTFWeakTearoff* result = new nsXTFWeakTearoff(iid,obj);
  if (! result)
    return NS_ERROR_OUT_OF_MEMORY;

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

Here is the call graph for this function:

Here is the caller graph for this function: