Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4519 in orxonox.OLD for orxonox/trunk/src/lib/event/event_handler.h


Ignore:
Timestamp:
Jun 6, 2005, 2:36:04 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: changed all getInstances into inline functions to save some (minor) time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/event/event_handler.h

    r4457 r4519  
    1919
    2020 public:
    21   static EventHandler* getInstance(void);
    2221  virtual ~EventHandler(void);
     22  /** \returns a Pointer to the only object of this Class */
     23  inline static EventHandler* getInstance(void) { if (!singletonRef) singletonRef = new EventHandler();  return singletonRef; };
    2324  void init();
    2425
Note: See TracChangeset for help on using the changeset viewer.