Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3544 in orxonox.OLD for orxonox/trunk/src/glmenu


Ignore:
Timestamp:
Mar 14, 2005, 10:54:00 AM (20 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

Location:
orxonox/trunk/src/glmenu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/glmenu/glmenu_imagescreen.cc

    r3543 r3544  
    4646/**
    4747   \brief standard deconstructor
     48   \todo this deconstructor is not jet implemented - do it
    4849*/
    4950GLMenuImageScreen::~GLMenuImageScreen()
    50 {
    51   this->destroy();
    52 }
    53 
    54 /**
    55    \brief deletes all alocated Memory and also deletes everything from the Class this one is erived from
    56 
    57    \todo this deconstructor is not jet implemented - do it
    58 */
    59 void GLMenuImageScreen::destroy(void)
    6051{
    6152  if (backMat)
    6253    delete backMat;
    63 
    64   static_cast<BaseObject*>(this)->destroy();
    6554}
    6655
  • orxonox/trunk/src/glmenu/glmenu_imagescreen.h

    r3543 r3544  
    1818
    1919 public:
    20   ~GLMenuImageScreen ();
    21   void destroy(void);
    22 
     20  virtual ~GLMenuImageScreen ();
     21 
    2322  static GLMenuImageScreen* getInstance();
    2423
Note: See TracChangeset for help on using the changeset viewer.