Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5778 in orxonox.OLD


Ignore:
Timestamp:
Nov 25, 2005, 3:41:18 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: saver removal

Location:
trunk/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r5775 r5778  
    7474{
    7575  // remove the Node, delete it's children.
    76   list<Element2D*>::iterator child;
    77   for (child = this->children.begin(); child != this->children.end(); child++)
    78     delete *child;
    79 
     76  while (this->children.size() > 0)
     77  {
     78    Element2D* child = this->children.front();
     79    this->children.pop_front();
     80    delete child;
     81  }
    8082  if (this->parent != NULL)
    8183  {
  • trunk/src/lib/physics/physics_engine.cc

    r5776 r5778  
    4949{
    5050  // delete all PhysicsConnections that are still in existence
    51   list<PhysicsConnection*>::iterator pc;
    52   for (pc = this->connections.begin(); pc != this->connections.end(); pc++)
    53     delete (*pc);
     51  while (this->connections.size() > 0)
     52  {
     53    PhysicsConnection* connection = this->connections.front();
     54    this->connections.pop_front();
     55    delete connection;
     56  }
    5457//
    5558//   // delete all PhysicsInterfaces, still in existence (this could be dangerous)
Note: See TracChangeset for help on using the changeset viewer.