if (aIID.Equals(nsIScriptObjectOwner::GetIID())) { nsIScriptObjectOwner* tmp = this;
if (aIID.Equals(nsIEnumerator::GetIID()) || aIID.Equals(nsIBidirectionalEnumerator::GetIID())) { nsIBidirectionalEnumerator* tmp = this;
nsRangeList::QueryInterface(REFNSIID aIID, void** aInstancePtr){  if (NULL == aInstancePtr) {    return NS_ERROR_NULL_POINTER;  }  if (aIID.Equals(nsIDOMSelection::GetIID())) {    nsIDOMSelection* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(nsIFrameSelection::GetIID())) {    nsIFrameSelection* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(nsIScriptObjectOwner::GetIID())) {    nsIScriptObjectOwner* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(nsIEnumerator::GetIID())) {    nsRangeListIterator *iterator =  new nsRangeListIterator(this);    *aInstancePtr = (void *)iterator;    return iterator->AddRef();  }  if (aIID.Equals(((nsISupports *)((nsIFrameSelection *)this))->GetIID())) {    // use *first* base class for ISupports    nsIFrameSelection* tmp1 = this;    nsISupports* tmp2 = tmp1;    *aInstancePtr = (void*) tmp2;    NS_ADDREF_THIS();    return NS_OK;  }  return NS_NOINTERFACE;}