Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2009, 10:21:26 PM (16 years ago)
Author:
landauf
Message:

replaced delete with destroy() in modules

Location:
code/branches/core5/src/modules/pong
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/pong/Pong.cc

    r5738 r5800  
    120120        if (this->ball_)
    121121        {
    122             delete this->ball_;
     122            this->ball_->destroy();
    123123            this->ball_ = 0;
    124124        }
  • code/branches/core5/src/modules/pong/PongAI.cc

    r5738 r5800  
    6161    {
    6262        for (std::list<std::pair<Timer<PongAI>*, char> >::iterator it = this->reactionTimers_.begin(); it != this->reactionTimers_.end(); ++it)
    63             delete (*it).first;
     63            (*it).first->destroy();
    6464    }
    6565
     
    247247        // Destroy the timer and remove it from the list
    248248        Timer<PongAI>* timer = this->reactionTimers_.front().first;
    249         delete timer;
     249        timer->destroy();
    250250
    251251        this->reactionTimers_.pop_front();
Note: See TracChangeset for help on using the changeset viewer.