nsIRDFService * aRDFServ, nsICharsetConverterManager2 * aCCMan,
nsresult nsCharsetMenu::AddMenuItemArrayToContainer(                        nsIRDFService * aRDFServ,                         nsICharsetConverterManager2 * aCCMan,                        nsIRDFContainer * aContainer,                        nsVoidArray * aArray,                        nsIRDFResource * aType) {  PRUint32 count = aArray->Count();  nsresult res = NS_OK;  for (PRUint32 i = 0; i < count; i++) {    nsMenuItem * item = (nsMenuItem *) aArray->ElementAt(i);    if (item == NULL) return NS_ERROR_UNEXPECTED;    res = AddMenuItemToContainer(aRDFServ, aCCMan, aContainer, item, aType,       NULL);    if (NS_FAILED(res)) return res;  }  return NS_OK;}