Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2015, 11:32:08 PM (9 years ago)
Author:
landauf
Message:

made mapEntry const& wherever possible

Location:
code/branches/cpp11_v2/src/libraries/core/module
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/module/DynLibManager.cc

    r10916 r10917  
    7575    {
    7676        // Unload & delete resources in turn
    77         for (auto& mapEntry : mLibList)
     77        for (const auto& mapEntry : mLibList)
    7878        {
    7979            mapEntry.second->unload();
  • code/branches/cpp11_v2/src/libraries/core/module/ModuleInstance.cc

    r10916 r10917  
    7575        std::map<StaticInitialization::Type, std::set<StaticallyInitializedInstance*>> copy(this->staticallyInitializedInstancesByType_);
    7676        this->staticallyInitializedInstancesByType_.clear();
    77         for (auto& mapEntry : copy)
     77        for (const auto& mapEntry : copy)
    7878            for (std::set<StaticallyInitializedInstance*>::iterator it2 = mapEntry.second.begin(); it2 != mapEntry.second.end(); ++it2)
    7979                delete (*it2);
  • code/branches/cpp11_v2/src/libraries/core/module/PluginManager.cc

    r10916 r10917  
    5959        ModifyConsoleCommand("PluginManager", __CC_PluginManager_unload_name).setObject(nullptr);
    6060
    61         for (auto& mapEntry : this->references_)
     61        for (const auto& mapEntry : this->references_)
    6262            delete mapEntry.second;
    63         for (auto& mapEntry : this->plugins_)
     63        for (const auto& mapEntry : this->plugins_)
    6464            delete mapEntry.second;
    6565    }
Note: See TracChangeset for help on using the changeset viewer.