Changeset 563 for code/branches/FICN/src/orxonox/core/Factory.cc
- Timestamp:
- Dec 17, 2007, 4:02:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/Factory.cc
r562 r563 38 38 namespace orxonox 39 39 { 40 Factory* Factory::pointer_s = 0;41 42 40 /** 43 41 @returns the Identifier with a given name. … … 105 103 Factory* Factory::getFactoryPointer() 106 104 { 107 // static Factory theOneAndOnlyInstance = Factory(); 108 // return &theOneAndOnlyInstance; 109 if (!pointer_s) 110 pointer_s = new Factory(); 111 112 return pointer_s; 105 static Factory theOneAndOnlyInstance = Factory(); 106 return &theOneAndOnlyInstance; 113 107 } 114 108 }
Note: See TracChangeset
for help on using the changeset viewer.