Changeset 3556 in orxonox.OLD for orxonox/trunk/src/track_node.cc
- Timestamp:
- Mar 15, 2005, 2:34:44 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/track_node.cc
r3545 r3556 25 25 using namespace std; 26 26 27 TrackNode* TrackNode::singletonRef = 0;28 29 TrackNode* TrackNode::getInstance ()30 {31 if (!singletonRef)32 singletonRef = new TrackNode ();33 return singletonRef;34 }35 36 27 /** 37 28 \brief standard constructor … … 43 34 this->setClassName("TrackNode"); 44 35 this->setName("TrackNode"); /* absolete but still used... */ 45 singletonRef = this;46 36 47 37 NullParent::getInstance()->addChild(this); 48 38 this->trackManager = TrackManager::getInstance(); 49 this-> mode = ALL;39 this->setMode(ALL); 50 40 } 51 41 … … 55 45 this->parent = NullParent::getInstance(); 56 46 this->trackManager = TrackManager::getInstance(); 57 this-> mode = ALL;47 this->setMode(ALL); 58 48 this->absCoordinate = *absCoordinate; 59 49 } … … 67 57 TrackNode::~TrackNode () 68 58 { 69 singletonRef = NULL; 59 70 60 }
Note: See TracChangeset
for help on using the changeset viewer.