Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2015, 11:42:16 PM (9 years ago)
Author:
landauf
Message:

some refactoring in ScopeManager. made it a singleton and added functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/singleton/ScopedSingletonIncludes.cc

    r10460 r10462  
    3333    void StaticallyInitializedScopedSingletonWrapper::load()
    3434    {
    35         ScopeManager::getListeners()[this->wrapper_->getScope()].insert(this->wrapper_);
     35        ScopeManager::getInstance().addListener(this->wrapper_);
    3636    }
    3737
    3838    void StaticallyInitializedScopedSingletonWrapper::unload()
    3939    {
    40         ScopeManager::getListeners()[this->wrapper_->getScope()].erase(this->wrapper_);
     40        ScopeManager::getInstance().removeListener(this->wrapper_);
    4141    }
    4242}
Note: See TracChangeset for help on using the changeset viewer.