Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3544 in orxonox.OLD for orxonox/trunk/src/lib/coord/p_node.cc


Ignore:
Timestamp:
Mar 14, 2005, 10:54:00 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now the delete-process is as inteded by c++
virtual ~ClassName extends deletion and deletes also the MasterClass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r3543 r3544  
    113113  /* there is currently a problem with cleaning up - fix*/
    114114
    115   this->destroy();
     115  PNode* pn = this->children->enumerate();
     116  while( pn != NULL)
     117    {
     118      pn = this->children->nextElement();
     119      delete pn;
     120    }
     121  /* this deletes all children in the list */
     122  delete this->children;
     123
    116124}
    117125
     
    122130   cleans up all pnodes
    123131*/
     132/*
    124133void PNode::destroy ()
    125134{
     
    130139      pn = this->children->nextElement();
    131140    }
    132   /* this deletes all children in the list */
     141  // this deletes all children in the list
    133142  this->children->destroy ();
    134143
    135144  static_cast<BaseObject*>(this)->destroy();
    136145}
    137 
     146*/
    138147
    139148/**
Note: See TracChangeset for help on using the changeset viewer.