- Add unified Singleton support
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@643 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
8ca3a61730
commit
383889a203
17 changed files with 193 additions and 136 deletions
|
@ -23,17 +23,6 @@
|
|||
|
||||
using namespace sgpem;
|
||||
|
||||
GlobalPreferences* GlobalPreferences::_instance = 0;
|
||||
|
||||
GlobalPreferences&
|
||||
GlobalPreferences::instance()
|
||||
{
|
||||
if(!_instance)
|
||||
_instance = new GlobalPreferences();
|
||||
return *_instance;
|
||||
}
|
||||
|
||||
|
||||
GlobalPreferences::GlobalPreferences()
|
||||
: _mod_dirs(1, PLUGDIR), _pol_dirs(1, POLDIR)
|
||||
{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue