if (nsnull != mOptionSelected) { if (mNumOptions >= indx) { mOptionSelected[indx] = aValue;
PRInt32 selectedIndex = GetSelectedIndex(); PRBool multiple = PR_FALSE; GetMultiple(&multiple);  if (PR_TRUE == multiple) { SetOptionSelectedCache(aIndex, aValue); } else { if (aValue) { SetOptionSelectedCache(selectedIndex, PR_FALSE); SetOptionSelectedCache(aIndex, PR_TRUE); } else { SetOptionSelectedCache(aIndex, PR_FALSE);
void nsNativeSelectControlFrame::SetOptionSelected(PRInt32 indx, PRBool aValue){  if (nsnull != mOptionSelected) {    if (mNumOptions >= indx) {      mOptionSelected[indx] = aValue;    }  }}         