if (gRefCnt++ == 0) { nsresult rv = nsServiceManager::GetService( kRDFServiceCID, kIRDFServiceIID, (nsISupports**) &gRDFService );  gRDFService->GetResource( kURINC_WindowMediatorRoot,   &kNC_WindowMediatorRoot ); gRDFService->GetResource (kURINC_Name, &kNC_Name ); gRDFService->GetResource( kURINC_URL, &kNC_URL ); }
nsresult rv; rv = Init(); NS_ASSERTION(NS_SUCCEEDED(rv), "uh oh, couldn't Init() for some reason");
nsWindowMediator::nsWindowMediator() :	mTimeStamp( 0 ), mEnumeratorList(5), mWindowList(5){	 NS_INIT_REFCNT();	 if (gRefCnt++ == 0)	 {      nsresult rv = nsServiceManager::GetService( kRDFServiceCID, kIRDFServiceIID, (nsISupports**) &gRDFService );			gRDFService->GetResource( kURINC_WindowMediatorRoot,   &kNC_WindowMediatorRoot );			gRDFService->GetResource (kURINC_Name, &kNC_Name );			gRDFService->GetResource( kURINC_URL, &kNC_URL );    }}