nsCOMPtr<nsIAtom> atom; res = aList->GetElementAt(i, getter_AddRefs(atom));
charset = aList.CStringAt(i); if (!charset) continue;  res = mCCManager->GetCharsetData(charset->get(), aProp->get(), str);
nsresult nsCharsetMenu::RemoveFlaggedCharsets(                        nsISupportsArray * aList,                         nsICharsetConverterManager2 * aCCMan,                         nsString * aProp){  nsresult res = NS_OK;  PRUint32 count;  res = aList->Count(&count);  if (NS_FAILED(res)) return res;  for (PRUint32 i = 0; i < count; i++) {    nsCOMPtr<nsIAtom> atom;    res = aList->GetElementAt(i, getter_AddRefs(atom));    if (NS_FAILED(res)) continue;    nsAutoString str;    res = aCCMan->GetCharsetData2(atom, aProp->GetUnicode(), &str);    if (NS_FAILED(res)) continue;    res = aList->RemoveElement(atom);    if (NS_FAILED(res)) continue;    i--;     count--;  }  return NS_OK;}