Changeset 11018
- Timestamp:
- Jan 2, 2016, 8:59:12 PM (9 years ago)
- Location:
- code/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/tools/Timer.cc
r10624 r11018 104 104 { 105 105 CommandExecutor::execute(command); 106 timer->destroy();106 delete timer; 107 107 delaytimers.right.erase(timer); 108 108 } … … 114 114 { 115 115 for (boost::bimap<unsigned int, Timer*>::left_map::iterator it = delaytimers.left.begin(); it != delaytimers.left.end(); ++it) 116 it->second->destroy();116 delete it->second; 117 117 118 118 delaytimers.clear(); … … 127 127 if (it != delaytimers.left.end()) 128 128 { 129 it->second->destroy();129 delete it->second; 130 130 delaytimers.left.erase(it); 131 131 } … … 210 210 211 211 if (temp) 212 this->destroy();212 delete this; 213 213 } 214 214 -
code/trunk/src/libraries/tools/Timer.h
r9667 r11018 79 79 #include "tools/ToolsPrereqs.h" 80 80 81 #include "core/ class/OrxonoxClass.h"81 #include "core/object/Listable.h" 82 82 #include "core/command/ExecutorPtr.h" 83 83 … … 102 102 on the game time. 103 103 */ 104 class _ToolsExport Timer : public OrxonoxClass104 class _ToolsExport Timer : public Listable 105 105 { 106 106 public: -
code/trunk/src/modules/pong/PongAI.cc
r10727 r11018 78 78 { 79 79 for (std::list<std::pair<Timer*, char> >::iterator it = this->reactionTimers_.begin(); it != this->reactionTimers_.end(); ++it) 80 it->first->destroy();80 delete it->first; 81 81 } 82 82 … … 380 380 381 381 // Destroy the timer and remove it from the list 382 Timer* timer = this->reactionTimers_.front().first; 383 timer->destroy(); 384 382 delete this->reactionTimers_.front().first; 385 383 this->reactionTimers_.pop_front(); 386 384 } -
code/trunk/src/orxonox/worldentities/MovableEntity.cc
r10216 r11018 61 61 if (this->isInitialized()) 62 62 if (this->continuousResynchroTimer_) 63 this->continuousResynchroTimer_->destroy();63 delete this->continuousResynchroTimer_; 64 64 } 65 65
Note: See TracChangeset
for help on using the changeset viewer.