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
Files:
8 edited

Legend:

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

    r10916 r10917  
    107107    Language::~Language()
    108108    {
    109         for (auto& mapEntry : this->languageEntries_)
     109        for (const auto& mapEntry : this->languageEntries_)
    110110            delete (mapEntry.second);
    111111    }
  • code/branches/cpp11_v2/src/libraries/core/Loader.cc

    r10916 r10917  
    261261        {
    262262            bool expectedValue = true;
    263             for (auto& mapEntry : luaTags)
     263            for (const auto& mapEntry : luaTags)
    264264            {
    265265                if (mapEntry.second == expectedValue)
  • code/branches/cpp11_v2/src/libraries/core/NamespaceNode.cc

    r10916 r10917  
    103103                bool bFoundMatchingNamespace = false;
    104104
    105                 for (auto& mapEntry : this->subnodes_)
     105                for (const auto& mapEntry : this->subnodes_)
    106106                {
    107107                    if (mapEntry.first.find(firstPart) == (mapEntry.first.size() - firstPart.size()))
  • code/branches/cpp11_v2/src/libraries/core/class/Identifier.cc

    r10916 r10917  
    9292            const_cast<Identifier*>(directChild)->directParents_.remove(this);
    9393
    94         for (auto& mapEntry : this->configValues_)
     94        for (const auto& mapEntry : this->configValues_)
    9595            delete (mapEntry.second);
    96         for (auto& mapEntry : this->xmlportParamContainers_)
     96        for (const auto& mapEntry : this->xmlportParamContainers_)
    9797            delete (mapEntry.second);
    98         for (auto& mapEntry : this->xmlportObjectContainers_)
     98        for (const auto& mapEntry : this->xmlportObjectContainers_)
    9999            delete (mapEntry.second);
    100100    }
  • code/branches/cpp11_v2/src/libraries/core/input/InputManager.cc

    r10916 r10917  
    373373        // check whether a state has changed its EMPTY situation
    374374        bool bUpdateRequired = false;
    375         for (auto& mapEntry : activeStates_)
     375        for (const auto& mapEntry : activeStates_)
    376376        {
    377377            if (mapEntry.second->hasExpired())
  • 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.