Changeset 11018 for code/trunk/src/libraries
- Timestamp:
- Jan 2, 2016, 8:59:12 PM (9 years ago)
- Location:
- code/trunk/src/libraries/tools
- Files:
-
- 2 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:
Note: See TracChangeset
for help on using the changeset viewer.