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/WeaponSet.cc

    r10916 r10917  
    6363    {
    6464        // Fire all WeaponPacks with their defined weaponmode
    65         for (auto& mapEntry : this->weaponpacks_)
     65        for (const auto& mapEntry : this->weaponpacks_)
    6666            if (mapEntry.second != WeaponSystem::WEAPON_MODE_UNASSIGNED)
    6767                mapEntry.first->fire(mapEntry.second);
     
    7171    {
    7272        // Reload all WeaponPacks with their defined weaponmode
    73         for (auto& mapEntry : this->weaponpacks_)
     73        for (const auto& mapEntry : this->weaponpacks_)
    7474            mapEntry.first->reload();
    7575    }
Note: See TracChangeset for help on using the changeset viewer.