Back to index

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

Go to the source code of this file.

Functions

nsresult NS_NewXTFBindableElementWrapper (nsIXTFBindableElement *xtfElement, nsINodeInfo *ni, nsIContent **aResult)

Function Documentation

Definition at line 139 of file nsXTFBindableElementWrapper.cpp.

{
  *aResult = nsnull;
  
  if (!xtfElement) {
    NS_ERROR("can't construct an xtf wrapper without an xtf element");
    return NS_ERROR_INVALID_ARG;
  }
  
  nsXTFBindableElementWrapper* result = new nsXTFBindableElementWrapper(ni, xtfElement);
  if (!result)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(result);

  nsresult rv = result->Init();

  if (NS_FAILED(rv)) {
    NS_RELEASE(result);
    return rv;
  }
  
  *aResult = result;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: