NS_ASSERTION(mPrefService, "Preference Service failed to start up!!");
nsPref::nsPref()//----------------------------------------------------------------------------------------{  PR_AtomicIncrement(&g_InstanceCount);  NS_INIT_REFCNT();  mPrefService = do_GetService(NS_PREFSERVICE_CONTRACTID);  if (mPrefService)    mPrefService->GetDefaultBranch("", getter_AddRefs(mDefaultBranch));}