gRDFService->GetResource(NC_NAMESPACE_URI "child", &kNC_Child); gRDFService->GetResource(NC_NAMESPACE_URI "Name",  &kNC_Name); gRDFService->GetResource(NC_NAMESPACE_URI "loading", &kNC_loading); gRDFService->GetResource(NC_NAMESPACE_URI "BookmarkSeparator", &kNC_BookmarkSeparator); gRDFService->GetResource(RDF_NAMESPACE_URI "type", &kRDF_type); gRDFService->GetResource(kURINC_RelatedLinksRoot, &kNC_RelatedLinksRoot); }
gRDFService->GetResource(kURINC_RelatedLinksRoot, &kNC_RelatedLinksRoot); gRDFService->GetResource(NC_NAMESPACE_URI  "child", &kNC_Child); gRDFService->GetResource(NC_NAMESPACE_URI  "Name", &kNC_Name); gRDFService->GetResource(RDF_NAMESPACE_URI "type", &kRDF_type); }
RelatedLinksStreamListener::Init(){	 if (gRefCnt++ == 0) {		 nsresult rv = nsServiceManager::GetService(kRDFServiceCID,							    nsIRDFService::GetIID(),							    (nsISupports**) &gRDFService);		 NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");		 if (NS_FAILED(rv))			 return rv;		 gRDFService->GetResource(NC_NAMESPACE_URI "child", &kNC_Child);		 gRDFService->GetResource(NC_NAMESPACE_URI "Name",  &kNC_Name);		 gRDFService->GetResource(NC_NAMESPACE_URI "loading", &kNC_loading);		 gRDFService->GetResource(NC_NAMESPACE_URI "BookmarkSeparator", &kNC_BookmarkSeparator);		 gRDFService->GetResource(RDF_NAMESPACE_URI "type", &kRDF_type);		 gRDFService->GetResource(kURINC_RelatedLinksRoot, &kNC_RelatedLinksRoot);	 }	 mParentArray.AppendElement(kNC_RelatedLinksRoot);	 return NS_OK;}