mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
load up default pref file, more detailed version requires mac project file changes
This commit is contained in:
parent
44463b458c
commit
78ac8a25e8
@ -40,6 +40,7 @@ private:
|
||||
nsPref();
|
||||
~nsPref();
|
||||
|
||||
static void useDefaultPrefFile(nsPref *aPrefInst);
|
||||
static nsPref *mInstance;
|
||||
|
||||
public:
|
||||
@ -189,10 +190,24 @@ nsPref::~nsPref() {
|
||||
mInstance = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
nsPref::useDefaultPrefFile(nsPref *aPrefInst)
|
||||
{
|
||||
/* temporary hack to load up pref files */
|
||||
|
||||
if (!aPrefInst)
|
||||
return;
|
||||
|
||||
aPrefInst->Startup("prefs.js");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
nsPref *nsPref::GetInstance()
|
||||
{
|
||||
if (mInstance == NULL) {
|
||||
mInstance = new nsPref();
|
||||
useDefaultPrefFile(mInstance);
|
||||
}
|
||||
return mInstance;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user