nsCOMPtr<nsISupports> indexIsupports = dont_AddRef(mRangeList->mRangeArray[mType]->ElementAt(mIndex)); return indexIsupports->QueryInterface(nsIDOMRange::GetIID(),(void **)aItem);
*aItem = mRangeList->mRangeArray[mType]->ElementAt(mIndex); return NS_OK;
nsRangeListIterator::CurrentItem(nsIDOMRange **aItem){  if (!aItem)    return NS_ERROR_NULL_POINTER;  PRUint32 cnt;  nsresult rv = mRangeList->mRangeArray[mType]->Count(&cnt);  if (NS_FAILED(rv)) return rv;  if (mIndex >=0 && mIndex < (PRInt32)cnt){    nsCOMPtr<nsISupports> indexIsupports = dont_AddRef(mRangeList->mRangeArray[mType]->ElementAt(mIndex));    return indexIsupports->QueryInterface(nsIDOMRange::GetIID(),(void **)aItem);  }  return NS_ERROR_FAILURE;}