if (!gInstance) { NS_NEWXPCOM(gInstance, nsPref); } return gInstance;
if (!gInstance) { gInstance = new nsPref(); gInstance->StartUp(); } return gInstance;
nsPref* nsPref::GetInstance()//----------------------------------------------------------------------------------------{  if (!gInstance)  {    NS_NEWXPCOM(gInstance, nsPref);  }  return gInstance;} // nsPref::GetInstance