PRUint32 i, count = mArray->Count();
PRUint32 i, count; mArray->Count(&count);
nsXMLNamedNodeMap::SetNamedItem(nsIDOMNode* aArg, nsIDOMNode** aReturn){  if (!aReturn || !aArg)    return NS_ERROR_NULL_POINTER;  *aReturn = 0;  nsAutoString argName;  aArg->GetNodeName(argName);  if (mArray) {    PRUint32 i, count = mArray->Count();    for (i = 0; i < count; i++) {      nsCOMPtr<nsIDOMNode> node(do_QueryInterface(mArray->ElementAt(i)));      if (!node)        break;      nsAutoString tmpName;      node->GetNodeName(tmpName);      if (argName.Equals(tmpName)) {        mArray->ReplaceElementAt(aArg, i);        *aReturn = node;        break;      }    }  } else {    nsresult rv = NS_NewISupportsArray(&mArray);    if (NS_FAILED(rv))      return rv;  }  if (!*aReturn)    mArray->AppendElement(aArg);  return NS_OK;}