nsCOMPtr<nsIInterfaceInfoManager> iim(dont_AddRef(XPTI_GetInterfaceInfoManager())); if (!iim) {
nsCOMPtr<nsIInterfaceInfoManager> iim (xptiInterfaceInfoManager::GetInterfaceInfoManagerNoAddRef()); if (!iim)
nsXPTIInterfaceInfoManagerGetSingleton(nsISupports* outer,                                       const nsIID& aIID,                                       void* *aInstancePtr){    NS_ENSURE_ARG_POINTER(aInstancePtr);    NS_ENSURE_TRUE(!outer, NS_ERROR_NO_AGGREGATION);    nsCOMPtr<nsIInterfaceInfoManager> iim(dont_AddRef(XPTI_GetInterfaceInfoManager()));    if (!iim) {        return NS_ERROR_FAILURE;    }    return iim->QueryInterface(aIID, aInstancePtr);}