if (gRefCnt++ == 0) { nsresult rv; if (NS_FAILED(rv = nsServiceManager::GetService(kRDFServiceCID, kIRDFServiceIID, (nsISupports**) &gRDFService))) { NS_ERROR("unable to get RDF service"); return; }  gRDFService->GetResource(kURINC_Bookmark,          &kNC_Bookmark); gRDFService->GetResource(kURINC_BookmarkAddDate,   &kNC_BookmarkAddDate); gRDFService->GetResource(kURINC_Description,       &kNC_Description); gRDFService->GetResource(kURINC_Folder,            &kNC_Folder); gRDFService->GetResource(kURINC_Name,              &kNC_Name); gRDFService->GetResource(kURINC_PersonalToolbarFolder, &kNC_PersonalToolbarFolder); gRDFService->GetResource(kURINC_URL,               &kNC_URL); gRDFService->GetResource(kURINC_ShortcutURL,       &kNC_ShortcutURL); gRDFService->GetResource(kURIRDF_type,             &kRDF_type); gRDFService->GetResource(kURIWEB_LastModifiedDate, &kWEB_LastModifiedDate); gRDFService->GetResource(kURIWEB_LastVisitDate,    &kWEB_LastVisitDate); }
bm_AddRefGlobals();
BookmarkParser::BookmarkParser(){    if (gRefCnt++ == 0) {        nsresult rv;        if (NS_FAILED(rv = nsServiceManager::GetService(kRDFServiceCID,                                                        kIRDFServiceIID,                                                        (nsISupports**) &gRDFService))) {            NS_ERROR("unable to get RDF service");            return;        }        gRDFService->GetResource(kURINC_Bookmark,          &kNC_Bookmark);        gRDFService->GetResource(kURINC_BookmarkAddDate,   &kNC_BookmarkAddDate);        gRDFService->GetResource(kURINC_Description,       &kNC_Description);        gRDFService->GetResource(kURINC_Folder,            &kNC_Folder);        gRDFService->GetResource(kURINC_Name,              &kNC_Name);        gRDFService->GetResource(kURINC_PersonalToolbarFolder, &kNC_PersonalToolbarFolder);        gRDFService->GetResource(kURINC_URL,               &kNC_URL);        gRDFService->GetResource(kURINC_ShortcutURL,       &kNC_ShortcutURL);        gRDFService->GetResource(kURIRDF_type,             &kRDF_type);        gRDFService->GetResource(kURIWEB_LastModifiedDate, &kWEB_LastModifiedDate);        gRDFService->GetResource(kURIWEB_LastVisitDate,    &kWEB_LastVisitDate);    }    }