Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsHashPropertyBag.h File Reference
#include "nsCOMPtr.h"
#include "nsCOMArray.h"
#include "nsVoidArray.h"
#include "nsIVariant.h"
#include "nsIWritablePropertyBag.h"
#include "nsIWritablePropertyBag2.h"
#include "nsInterfaceHashtable.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

protocol  NS_COM
 A string set that takes up minimal size when there are 0 or 1 strings in the set. More...

Defines

#define IMETHOD_VISIBILITY   NS_VISIBILITY_DEFAULT
#define IMETHOD_VISIBILITY   NS_VISIBILITY_HIDDEN

Functions

NS_COM nsresult NS_NewHashPropertyBag (nsIWritablePropertyBag **_retval)

Define Documentation

Definition at line 80 of file nsHashPropertyBag.h.

Definition at line 80 of file nsHashPropertyBag.h.


Function Documentation

Definition at line 49 of file nsHashPropertyBag.cpp.

{
    nsHashPropertyBag *hpb = new nsHashPropertyBag();
    if (!hpb)
        return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(hpb);

    nsresult rv = hpb->Init();
    if (NS_FAILED(rv)) {
        NS_RELEASE(hpb);
        return rv;
    }

    *_retval = hpb;
    return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: