res = AddMenuItemToContainer(aRDFServ, aContainer, item, NULL, "charset.", -2);
res = AddMenuItemToContainer(aContainer, item, NULL, "charset.", -2);
nsresult nsCharsetMenu::ClearMenu(nsIRDFService * aRDFServ,                                   nsIRDFContainer * aContainer,                                    nsVoidArray * aArray){  nsresult res = NS_OK;  // clean the RDF data source  PRInt32 count = aArray->Count();  for (PRInt32 i = 0; i < count; i++) {    nsMenuEntry * item = (nsMenuEntry *) aArray->ElementAt(i);    if (item != NULL) {          res = AddMenuItemToContainer(aRDFServ, aContainer, item, NULL,         "charset.", -2);      if (NS_FAILED(res)) return res;    }  }  // clean the internal data structures  FreeMenuItemArray(aArray);  return res;}