nsIDOMStyleSheetCollection *tmp = this; nsISupports *tmp2 = tmp; *aInstancePtrResult = (void*) tmp2; AddRef();
nsIDOMDOMImplementation* tmp = this; nsISupports* tmp2 = tmp; *aInstancePtr = (void*) tmp2; NS_ADDREF_THIS();
nsDOMStyleSheetCollection::QueryInterface(REFNSIID aIID, void** aInstancePtrResult){  if (NULL == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }  if (aIID.Equals(kIDOMStyleSheetCollectionIID)) {    nsIDOMStyleSheetCollection *tmp = this;    *aInstancePtrResult = (void*) tmp;    AddRef();    return NS_OK;  }  if (aIID.Equals(kIScriptObjectOwnerIID)) {    nsIScriptObjectOwner *tmp = this;    *aInstancePtrResult = (void*) tmp;    AddRef();    return NS_OK;  }  if (aIID.Equals(kIDocumentObserverIID)) {    nsIDocumentObserver *tmp = this;    *aInstancePtrResult = (void*) tmp;    AddRef();    return NS_OK;  }  if (aIID.Equals(kISupportsIID)) {    nsIDOMStyleSheetCollection *tmp = this;    nsISupports *tmp2 = tmp;    *aInstancePtrResult = (void*) tmp2;    AddRef();    return NS_OK;  }  return NS_NOINTERFACE;}