Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6534 for code/trunk/src


Ignore:
Timestamp:
Mar 16, 2010, 10:59:43 AM (15 years ago)
Author:
dafrick
Message:

PickupCarrier destructor a little more compact.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/interfaces/InterfaceCompilation.cc

    r6533 r6534  
    6464    PickupCarrier::~PickupCarrier()
    6565    {
    66         while(this->pickups_.size() > 0)
     66        std::set<Pickupable*>::iterator it = this->pickups_.begin();
     67        while(it != this->pickups_.end())
    6768        {
    68             std::set<Pickupable*>::iterator it = this->pickups_.begin();
    69             this->pickups_.erase(it);
    70             (*it)->destroy();
     69            (*(it++))->destroy();
    7170        }
    7271
Note: See TracChangeset for help on using the changeset viewer.