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

    r11059 r11062  
    312312        else
    313313        {
    314             return NULL;
     314            return nullptr;
    315315        }
    316316    }
     
    318318    void WeaponSystem::addMunition(Munition* munition)
    319319    {
    320         if (munition == NULL)
     320        if (munition == nullptr)
    321321        {
    322322            return;
     
    338338    void WeaponSystem::updateMunition()
    339339    {
    340         for (std::vector<WeaponPack*>::iterator it = this->weaponPacks_.begin(); it != this->weaponPacks_.end(); ++it)
    341         {
    342             (*it)->updateMunition();
     340        for (WeaponPack* weaponPack : this->weaponPacks_)
     341        {
     342            weaponPack->updateMunition();
    343343        }
    344344    }
Note: See TracChangeset for help on using the changeset viewer.