Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5210 in orxonox.OLD for trunk/src/lib/event


Ignore:
Timestamp:
Sep 21, 2005, 12:01:25 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: other minor valgrid found error-fixes

Location:
trunk/src/lib/event
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/event/event_handler.cc

    r5093 r5210  
    3636  this->setClassID(CL_EVENT_HANDLER, "EventHandler");
    3737
    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 
    4238  /* 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++)
    4642        {
    4743          this->listeners[i][j] = NULL;
  • trunk/src/lib/event/event_handler.h

    r5093 r5210  
    4545
    4646 private:
    47   static EventHandler*       singletonRef;                  //!< the singleton reference
     47  static EventHandler*       singletonRef;                    //!< the singleton reference
    4848
    49   EventListener***           listeners;                    //!< a list of registered listeners
    50   elState                    state;                         //!< the state of the event handlder
    51   KeyMapper*                 keyMapper;                     //!< reference to the key mapper
     49  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
    5252};
    5353
Note: See TracChangeset for help on using the changeset viewer.