nsContentDLF::QueryInterface(REFNSIID aIID, void** aInstancePtrResult) { if (NULL == aInstancePtrResult) { return NS_ERROR_NULL_POINTER; }  static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); if (aIID.Equals(NS_GET_IID(nsIDocumentLoaderFactory))) { nsIDocumentLoaderFactory *tmp = this; *aInstancePtrResult = (void*) tmp; AddRef(); return NS_OK; } if (aIID.Equals(NS_GET_IID(nsIDocStreamLoaderFactory))) { nsIDocStreamLoaderFactory *tmp = this; *aInstancePtrResult = (void*) tmp; AddRef(); return NS_OK; } if (aIID.Equals(kISupportsIID)) { nsIDocumentLoaderFactory *tmp = this; nsISupports *tmp2 = tmp; *aInstancePtrResult = (void*) tmp2; AddRef(); return NS_OK; } return NS_NOINTERFACE; }
NS_IMPL_ISUPPORTS1(nsContentDLF,
nsContentDLF::QueryInterface(REFNSIID aIID, void** aInstancePtrResult){  if (NULL == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }  static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);  if (aIID.Equals(NS_GET_IID(nsIDocumentLoaderFactory))) {    nsIDocumentLoaderFactory *tmp = this;    *aInstancePtrResult = (void*) tmp;    AddRef();    return NS_OK;  }  if (aIID.Equals(NS_GET_IID(nsIDocStreamLoaderFactory))) {    nsIDocStreamLoaderFactory *tmp = this;    *aInstancePtrResult = (void*) tmp;    AddRef();    return NS_OK;  }  if (aIID.Equals(kISupportsIID)) {    nsIDocumentLoaderFactory *tmp = this;    nsISupports *tmp2 = tmp;    *aInstancePtrResult = (void*) tmp2;    AddRef();    return NS_OK;  }  return NS_NOINTERFACE;}