Changeset 3311 in orxonox.OLD for orxonox/branches/parenting/src/null_parent.cc
- Timestamp:
- Dec 31, 2004, 2:20:21 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/null_parent.cc
r3306 r3311 22 22 using namespace std; 23 23 24 NullParent* NullParent::singletonRef = 0; 25 26 NullParent* NullParent::getInstance () 27 { 28 if( singletonRef == NULL) 29 singletonRef = new NullParent (); 30 return singletonRef; 31 } 24 32 25 33 /** … … 48 56 \todo this deconstructor is not jet implemented - do it 49 57 */ 50 NullParent::~NullParent () {} 58 NullParent::~NullParent () 59 { 60 delete singletonRef; 61 singletonRef = NULL; 62 } 51 63 52 64
Note: See TracChangeset
for help on using the changeset viewer.