Changeset 2363
- Timestamp:
- Dec 9, 2008, 9:26:54 AM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/core/Core.cc
r2361 r2363 56 56 RegisterRootObject(Core); 57 57 58 assert( this->singletonRef_s == 0);59 this->singletonRef_s = this;58 assert(Core::singletonRef_s == 0); 59 Core::singletonRef_s = this; 60 60 this->bInitializeRandomNumberGenerator_ = false; 61 61 … … 68 68 Core::~Core() 69 69 { 70 assert( singletonRef_s);71 singletonRef_s = 0;70 assert(Core::singletonRef_s); 71 Core::singletonRef_s = 0; 72 72 } 73 73 -
code/branches/objecthierarchy2/src/core/Core.h
r2361 r2363 56 56 void languageChanged(); 57 57 58 static Core& getInstance() { assert( singletonRef_s); return *singletonRef_s; }58 static Core& getInstance() { assert(Core::singletonRef_s); return *Core::singletonRef_s; } 59 59 60 60 static int getSoftDebugLevel(OutputHandler::OutputDevice device = OutputHandler::LD_All);
Note: See TracChangeset
for help on using the changeset viewer.