Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3544 in orxonox.OLD for orxonox/trunk/src/proto_class.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/proto_class.cc

    r3543 r3544  
    4040ProtoClass::~ProtoClass ()
    4141{
    42   this->destroy();
    43 }
    44 
    45 /**
    46    \brief deletes all data and also deletes all data from the class this is derived from
    47 */
    48 ProtoClass::~destroy(void)
    49 {
    5042  // delete what has to be deleted here
    51   static_cast<BaseObject*>(this)->destroy();
    5243}
    5344
Note: See TracChangeset for help on using the changeset viewer.