Changeset 4519 in orxonox.OLD for orxonox/trunk/src/subprojects
- Timestamp:
- Jun 6, 2005, 2:36:04 PM (20 years ago)
- Location:
- orxonox/trunk/src/subprojects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/framework.cc
r4374 r4519 236 236 Framework* Framework::singletonRef = NULL; 237 237 238 Framework* Framework::getInstance(void)239 {240 if (Framework::singletonRef == NULL)241 Framework::singletonRef = new Framework();242 return Framework::singletonRef;243 }244 245 238 Framework::Framework() 246 239 { -
orxonox/trunk/src/subprojects/framework.h
r4374 r4519 37 37 ~Framework(); 38 38 39 static Framework* getInstance(void); 39 /** \returns a Pointer to the only object of this Class */ 40 inline static Framework* getInstance(void) { if (!singletonRef) singletonRef = new Framework(); return singletonRef; }; 40 41 41 42
Note: See TracChangeset
for help on using the changeset viewer.