char * prefKey = "intl.charsetmenu.browser.static"; res = InitStaticMenu(rdfServ, ccMan, pref, decs, kNC_ComposerCharsetMenuRoot, prefKey, &mComposerMenu);
res = InitStaticMenu(mDecoderList, kNC_ComposerCharsetMenuRoot, kComposerStaticPrefKey, &mComposerMenu);
nsresult nsCharsetMenu::InitComposerMenu() {  nsresult res = NS_OK;  NS_WITH_SERVICE(nsIRDFService, rdfServ, kRDFServiceCID, &res);  if (NS_FAILED(res)) return res;  NS_WITH_SERVICE(nsICharsetConverterManager2, ccMan, kCharsetConverterManagerCID, &res);  if (NS_FAILED(res)) return res;  NS_WITH_SERVICE(nsIPref, pref, NS_PREF_PROGID, &res);  if (NS_FAILED(res)) return res;  nsCOMPtr<nsISupportsArray> decs;  res = ccMan->GetDecoderList(getter_AddRefs(decs));  if (NS_FAILED(res)) return res;  // even if we fail, the show must go on  char * prefKey = "intl.charsetmenu.browser.static";  res = InitStaticMenu(rdfServ, ccMan, pref, decs, kNC_ComposerCharsetMenuRoot,       prefKey, &mComposerMenu);  NS_ASSERTION(NS_SUCCEEDED(res), "error initializing composer static charset menu");  return res;}