nsIPref * aPref, nsIRDFService * aRDFServ, nsICharsetConverterManager2 * aCCMan,
nsresult nsCharsetMenu::AddFromNolocPrefsToMenu(                        nsIPref * aPref,                         nsIRDFService * aRDFServ,                         nsICharsetConverterManager2 * aCCMan,                         nsVoidArray * aArray,                         nsIRDFContainer * aContainer,                         char * aKey,                         nsISupportsArray * aDecs,                         char * aIDPrefix){  nsresult res = NS_OK;  char * value = NULL;  res = aPref->CopyCharPref(aKey, &value);  if (NS_FAILED(res)) return res;  if (value != NULL) {    res = AddFromStringToMenu(value, aRDFServ, aCCMan, aArray, aContainer,      aDecs, aIDPrefix);    nsMemory::Free(value);  }  return res;}