res = rdfc->MakeSeq(mInner, kNC_CharsetMenuRoot, NULL); if (NS_FAILED(res)) return res;
res = rdfUtil->MakeSeq(mInner, kNC_BrowserAutodetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_BrowserCharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_BrowserMoreCharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_BrowserMore1CharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_BrowserMore2CharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_BrowserMore3CharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_BrowserMore4CharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_BrowserMore5CharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_MaileditCharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_MailviewCharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_ComposerCharsetMenuRoot, NULL); if (NS_FAILED(res)) goto done; res = rdfUtil->MakeSeq(mInner, kNC_DecodersRoot, NULL); if (NS_FAILED(res)) goto done;
nsresult nsCharsetMenu::Init() {  nsresult res;  res = nsServiceManager::GetService(kRDFServiceCID, kIRDFServiceIID,     (nsISupports**) &gRDFService );  if (NS_FAILED(res)) return res;  gRDFService->GetResource(kURINC_CharsetMenuRoot, &kNC_CharsetMenuRoot);  gRDFService->GetResource(kURINC_Name, &kNC_Name);  res = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID, nsnull,     kIRDFDataSourceIID, (void**) &mInner);  if (NS_FAILED(res)) return res;  NS_WITH_SERVICE(nsIRDFContainerUtils, rdfc, kRDFContainerUtilsCID, &res);  if (NS_FAILED(res)) return res;  res = rdfc->MakeSeq(mInner, kNC_CharsetMenuRoot, NULL);  if (NS_FAILED(res)) return res;  res = gRDFService->RegisterDataSource(this, PR_FALSE);  return res;}