Changeset 153 for cpp/frams/model/model.cpp
- Timestamp:
- 03/01/14 22:20:08 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/model.cpp
r121 r153 135 135 void Model::clear() 136 136 { 137 Part *p; 138 for (parts.start();p=(Part*)parts();)delete p;139 Joint* j; 140 for (joints.start();j=(Joint*)joints();)delete j;141 Neuro *n; 142 for (neurons.start();n=(Neuro*)neurons();)delete n;137 FOREACH(Part*,p,parts) 138 delete p; 139 FOREACH(Joint*,j,joints) 140 delete j; 141 FOREACH(Neuro*,n,neurons) 142 delete n; 143 143 parts.clear(); joints.clear(); neurons.clear(); 144 144 delMap();
Note: See TracChangeset
for help on using the changeset viewer.