Back to index

lightning-sunbird  0.9+nobinonly
Defines
nsLocaleConstructors.h File Reference
#include "nsCollationCID.h"
#include "nsDateTimeFormatCID.h"
#include "nsFontPackageService.h"
#include "nsIGenericFactory.h"
#include "nsILocaleService.h"
#include "nsIScriptableDateFormat.h"
#include "nsIServiceManager.h"
#include "nsLanguageAtomService.h"
#include "nsLocaleCID.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NSLOCALE_MAKE_CTOR(ctor_, iface_, func_)

Define Documentation

#define NSLOCALE_MAKE_CTOR (   ctor_,
  iface_,
  func_ 
)
Value:
static NS_IMETHODIMP                                      \
ctor_(nsISupports* aOuter, REFNSIID aIID, void** aResult) \
{                                                         \
  *aResult = nsnull;                                      \
  if (aOuter)                                             \
    return NS_ERROR_NO_AGGREGATION;                       \
  iface_* inst;                                           \
  nsresult rv = func_(&inst);                             \
  if (NS_SUCCEEDED(rv)) {                                 \
    rv = inst->QueryInterface(aIID, aResult);             \
    NS_RELEASE(inst);                                     \
  }                                                       \
  return rv;                                              \
}

Definition at line 88 of file nsLocaleConstructors.h.