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

    r10916 r10917  
    5555    Munition::~Munition()
    5656    {
    57         for (auto& mapEntry : this->currentMagazines_)
     57        for (const auto& mapEntry : this->currentMagazines_)
    5858            delete mapEntry.second;
    5959    }
     
    316316            {
    317317                bool change = false;
    318                 for (auto& mapEntry : this->currentMagazines_)
     318                for (const auto& mapEntry : this->currentMagazines_)
    319319                {
    320320                    // Add munition if the magazine isn't full (but only to loaded magazines)
Note: See TracChangeset for help on using the changeset viewer.