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:
parent
016593f2e9
commit
4be1ae3cf8
1 changed files with 1 additions and 1 deletions
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue