nsICollection* tmp = this;
nsICollection* tmp = mRangeList;
nsRangeList::QueryInterface(REFNSIID aIID, void** aInstancePtr){  if (NULL == aInstancePtr) {    return NS_ERROR_NULL_POINTER;  }  if (aIID.Equals(kISupportsIID)) {    nsICollection* tmp = this;    nsISupports* tmp2 = tmp;    *aInstancePtr = (void*)tmp2;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kICollectionIID)) {    *aInstancePtr = (void*)(nsICollection *)this;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(  kISelectionIID)) {    *aInstancePtr = (void*)(nsISelection *)this;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kIEnumeratorIID)) {    nsRangeListIterator *iterator =  new nsRangeListIterator(this);    iterator->QueryInterface(kIEnumeratorIID,aInstancePtr);    *aInstancePtr = (void*)(iterator);    return NS_OK;  }  return NS_NOINTERFACE;}