Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsChromeUIDataSource.h File Reference
#include "nsIRDFDataSource.h"
#include "nsIRDFObserver.h"
#include "nsCOMArray.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsChromeUIDataSource

Functions

nsresult NS_NewChromeUIDataSource (nsIRDFDataSource *aComposite, nsIRDFDataSource **aResult)

Function Documentation

Definition at line 379 of file nsChromeUIDataSource.cpp.

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

  nsChromeUIDataSource* ChromeUIDataSource = new nsChromeUIDataSource(aComposite);
  if (ChromeUIDataSource == nsnull)
      return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(*aResult = ChromeUIDataSource);
  return NS_OK;
}