Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2015, 2:24:07 PM (9 years ago)
Author:
landauf
Message:

remove StaticallyInitializedInstance from the same module where it was added

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  
    3535    StaticallyInitializedInstance::StaticallyInitializedInstance()
    3636    {
    37         ModuleInstance::getCurrentModuleInstance()->addStaticallyInitializedInstance(this);
     37        this->module_ = ModuleInstance::getCurrentModuleInstance();
     38        this->module_->addStaticallyInitializedInstance(this);
    3839    }
    3940
    4041    StaticallyInitializedInstance::~StaticallyInitializedInstance()
    4142    {
    42         ModuleInstance::getCurrentModuleInstance()->removeStaticallyInitializedInstance(this);
     43        this->module_->removeStaticallyInitializedInstance(this);
    4344    }
    4445}
  • code/branches/core7/src/libraries/core/module/StaticallyInitializedInstance.h

    r10404 r10522  
    4242            virtual void load() = 0;
    4343            virtual void unload() = 0;
     44
     45        private:
     46            ModuleInstance* module_;
    4447    };
    4548}
Note: See TracChangeset for help on using the changeset viewer.