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