for (PRInt32 i=aStartIndex;i<aEndIndex;i++) { aOptions->ChildAt(i,*getter_AddRefs(child)); GetFirstOptionIndex(child, aListIndex); if ((*aListIndex) != -1) { return NS_OK;
for (PRInt32 i = aStartIndex; i < aEndIndex; ++i) { aOptions->ChildAt(i, getter_AddRefs(child)); retval = GetFirstOptionIndex(child); if (retval != -1) { break;
nsHTMLSelectElement::GetFirstChildOptionIndex(nsIContent* aOptions,                                              PRInt32 aStartIndex,                                              PRInt32 aEndIndex,                                              PRInt32* aListIndex){  nsCOMPtr<nsIContent> child;  for (PRInt32 i=aStartIndex;i<aEndIndex;i++) {    aOptions->ChildAt(i,*getter_AddRefs(child));    GetFirstOptionIndex(child, aListIndex);    if ((*aListIndex) != -1) {      return NS_OK;    }  }  return NS_OK;}