nsICharsetConverterManager2 * aCCMan,
nsresult nsCharsetMenu::AddCharsetArrayToItemArray(                        nsICharsetConverterManager2 * aCCMan,                         nsVoidArray * aArray,                         nsISupportsArray * aCharsets) {  PRUint32 count;  nsresult res = aCharsets->Count(&count);  if (NS_FAILED(res)) return res;  for (PRUint32 i = 0; i < count; i++) {    nsCOMPtr<nsIAtom> cs;    res = aCharsets->GetElementAt(i, getter_AddRefs(cs));    if (NS_FAILED(res)) return res;    res = AddCharsetToItemArray(aCCMan, aArray, cs, NULL);    if (NS_FAILED(res)) return res;  }  return NS_OK;}