Changeset 10543 for code/branches/core7/src/libraries/core/object
- Timestamp:
- Jun 7, 2015, 2:50:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/object/Context.cc
r10539 r10543 76 76 /*static*/ void Context::setRootContext(Context* context) 77 77 { 78 if (Context::rootContext_s)79 delete Context::rootContext_s;80 78 Context::rootContext_s = context; 81 79 } … … 83 81 /*static*/ Context* Context::getRootContext() 84 82 { 85 if (!Context::rootContext_s) 86 Context::rootContext_s = new Context(NULL); 83 OrxVerify(Context::rootContext_s != NULL, "Root Context is undefined"); 87 84 return Context::rootContext_s; 88 85 }
Note: See TracChangeset
for help on using the changeset viewer.