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

    r10916 r10917  
    6161                this->weaponPack_->removeWeapon(this);
    6262
    63             for (auto& mapEntry : this->weaponmodes_)
     63            for (const auto& mapEntry : this->weaponmodes_)
    6464                mapEntry.second->destroy();
    6565        }
     
    136136    void Weapon::reload()
    137137    {
    138         for (auto& mapEntry : this->weaponmodes_)
     138        for (const auto& mapEntry : this->weaponmodes_)
    139139            mapEntry.second->reload();
    140140    }
     
    148148    void Weapon::notifyWeaponModes()
    149149    {
    150         for (auto& mapEntry : this->weaponmodes_)
     150        for (const auto& mapEntry : this->weaponmodes_)
    151151            mapEntry.second->setWeapon(this);
    152152    }
Note: See TracChangeset for help on using the changeset viewer.