Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

made mapEntry const& wherever possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSystem.cc

    r10916 r10917  
    196196
    197197        // Assign the desired weaponmode to the firemodes
    198         for (auto& mapEntry : this->weaponSets_)
     198        for (const auto& mapEntry : this->weaponSets_)
    199199        {
    200200            unsigned int weaponmode = wPack->getDesiredWeaponmode(mapEntry.first);
     
    219219
    220220        // Remove all added links from the WeaponSets
    221         for (auto& mapEntry : this->weaponSets_)
     221        for (const auto& mapEntry : this->weaponSets_)
    222222            mapEntry.second->removeWeaponmodeLink(wPack);
    223223
     
    268268        // Check if the WeaponSet belongs to this WeaponSystem
    269269        bool foundWeaponSet = false;
    270         for (auto& mapEntry : this->weaponSets_)
     270        for (const auto& mapEntry : this->weaponSets_)
    271271        {
    272272            if (mapEntry.second == wSet)
     
    296296    void WeaponSystem::reload()
    297297    {
    298         for (auto& mapEntry : this->weaponSets_)
     298        for (const auto& mapEntry : this->weaponSets_)
    299299            mapEntry.second->reload();
    300300    }
Note: See TracChangeset for help on using the changeset viewer.