Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 13, 2016, 11:13:30 PM (8 years ago)
Author:
landauf
Message:

added c++11 features to code that was modified in presentationHS15

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v3/src/orxonox/weaponsystem/WeaponPack.cc

    r11059 r11062  
    159159    void WeaponPack::updateMunition()
    160160    {
    161         for (std::vector<Weapon *>::const_iterator it = this->weapons_.begin(); it != this->weapons_.end(); ++it)
    162             (*it)->updateMunition();
     161        for (Weapon* weapon : this->weapons_)
     162            weapon->updateMunition();
    163163    }
    164164}
Note: See TracChangeset for help on using the changeset viewer.