EventManager: Remove test for NULL pointer in constructor

This patch tidies up the EventManager constructor and prunes a corner
case where the EventManager would initialise its eventq pointer to
NULL. This would cause segmentation faults on actual use and should
never happen.
This commit is contained in:
Andreas Hansson 2012-08-21 05:49:18 -04:00
parent 016593f2e9
commit 4be1ae3cf8

View file

@ -432,7 +432,7 @@ class EventManager
public:
EventManager(EventManager &em) : eventq(em.eventq) {}
EventManager(EventManager *em) : eventq(em ? em->eventq : NULL) {}
EventManager(EventManager *em) : eventq(em->eventq) {}
EventManager(EventQueue *eq) : eventq(eq) {}
EventQueue *