Changeset 5210 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Sep 21, 2005, 12:01:25 AM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/obb_tree_node.cc
r5115 r5210 175 175 { 176 176 /* fist compute all the convex hull face/facelets and centroids */ 177 for(int i = 0; i < length; i+=3) /* FIX-ME-QUICK: hops of 3, array indiscontinuity*/177 for(int i = 0; i+3 < length ; i+=3) /* FIX-ME-QUICK: hops of 3, array indiscontinuity*/ 178 178 { 179 179 p = verticesList[i]; -
trunk/src/lib/event/event_handler.cc
r5093 r5210 36 36 this->setClassID(CL_EVENT_HANDLER, "EventHandler"); 37 37 38 this->listeners = new EventListener**[ES_NUMBER];39 for(int i = 0; i < ES_NUMBER; ++i)40 this->listeners[i] = new EventListener*[EV_NUMBER];41 42 38 /* now initialize them all to zero */ 43 for(int i = 0; i < ES_NUMBER; ++i)44 { 45 for(int j = 0; j < EV_NUMBER; ++j)39 for(int i = 0; i < ES_NUMBER; i++) 40 { 41 for(int j = 0; j < EV_NUMBER; j++) 46 42 { 47 43 this->listeners[i][j] = NULL; -
trunk/src/lib/event/event_handler.h
r5093 r5210 45 45 46 46 private: 47 static EventHandler* singletonRef; //!< the singleton reference47 static EventHandler* singletonRef; //!< the singleton reference 48 48 49 EventListener* ** listeners;//!< a list of registered listeners50 elState state; //!< the state of the event handlder51 KeyMapper* keyMapper; //!< reference to the key mapper49 EventListener* listeners[ES_NUMBER][EV_NUMBER]; //!< a list of registered listeners 50 elState state; //!< the state of the event handlder 51 KeyMapper* keyMapper; //!< reference to the key mapper 52 52 }; 53 53 -
trunk/src/lib/shell/shell_buffer.cc
r5206 r5210 94 94 while (charElem != NULL) 95 95 { 96 delete charElem;96 delete[] charElem; 97 97 charElem = bufferIterator->nextElement(); 98 98 } … … 180 180 if (this->buffer->getSize() > this->bufferSize) 181 181 { 182 delete this->buffer->firstElement();182 delete[] this->buffer->firstElement(); 183 183 this->buffer->remove(this->buffer->firstElement()); 184 184 }
Note: See TracChangeset
for help on using the changeset viewer.