Changeset 9629 for code/branches/core6/src/libraries/core/object
- Timestamp:
- Aug 9, 2013, 9:26:46 PM (11 years ago)
- Location:
- code/branches/core6/src/libraries/core/object
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/object/ClassFactory.h
r9602 r9629 55 55 public: 56 56 virtual ~Factory() {}; 57 virtual OrxonoxClass* fabricate( BaseObject* creator) = 0;57 virtual OrxonoxClass* fabricate(Context* context) = 0; 58 58 }; 59 59 … … 82 82 @return The new object 83 83 */ 84 inline OrxonoxClass* fabricate( BaseObject* creator)84 inline OrxonoxClass* fabricate(Context* context) 85 85 { 86 return static_cast<OrxonoxClass*>(new T(c reator));86 return static_cast<OrxonoxClass*>(new T(context)); 87 87 } 88 88 }; -
code/branches/core6/src/libraries/core/object/Context.cc
r9610 r9629 56 56 /*static*/ Context* Context::getRootContext() 57 57 { 58 static Context rootContext ;58 static Context rootContext(NULL); 59 59 return &rootContext; 60 60 } -
code/branches/core6/src/libraries/core/object/Context.h
r9610 r9629 48 48 static Context* getRootContext(); 49 49 50 Context(Context* context = NULL);50 Context(Context* context); 51 51 virtual ~Context(); 52 52
Note: See TracChangeset
for help on using the changeset viewer.