Changeset 10522
- Timestamp:
- May 31, 2015, 2:24:07 PM (9 years ago)
- Location:
- code/branches/core7/src/libraries/core/module
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/module/StaticallyInitializedInstance.cc
r10344 r10522 35 35 StaticallyInitializedInstance::StaticallyInitializedInstance() 36 36 { 37 ModuleInstance::getCurrentModuleInstance()->addStaticallyInitializedInstance(this); 37 this->module_ = ModuleInstance::getCurrentModuleInstance(); 38 this->module_->addStaticallyInitializedInstance(this); 38 39 } 39 40 40 41 StaticallyInitializedInstance::~StaticallyInitializedInstance() 41 42 { 42 ModuleInstance::getCurrentModuleInstance()->removeStaticallyInitializedInstance(this);43 this->module_->removeStaticallyInitializedInstance(this); 43 44 } 44 45 } -
code/branches/core7/src/libraries/core/module/StaticallyInitializedInstance.h
r10404 r10522 42 42 virtual void load() = 0; 43 43 virtual void unload() = 0; 44 45 private: 46 ModuleInstance* module_; 44 47 }; 45 48 }
Note: See TracChangeset
for help on using the changeset viewer.