nsAutoString value; GetValue(value); if (aValue.Equals(value)) { NS_ADDREF(*aSelected = mElement); } else { *aSelected = nsnull;
*aSelected = nsnull; if (mIsCopyItem) {  return NS_OK;
nsXFormsItemElement::SelectItemByValue(const nsAString &aValue, nsIDOMNode **aSelected){  NS_ENSURE_ARG_POINTER(aSelected);  NS_ENSURE_STATE(mElement);  nsAutoString value;  GetValue(value);  if (aValue.Equals(value)) {    NS_ADDREF(*aSelected = mElement);  } else {    *aSelected = nsnull;  }  return NS_OK;}