changed pointer stuff

This commit is contained in:
Neeflix
2018-08-08 11:16:19 +02:00
parent 0c08b940f3
commit 844847edca
12 changed files with 56 additions and 36 deletions

View File

@@ -47,9 +47,9 @@ void EventNotifier::unregister_event_handler(IEventHandler* handler)
this->event_handlers.erase(handler);
}
void EventNotifier::distribute_event(Event& event)
void EventNotifier::distribute_event(std::shared_ptr<Event> event)
{
this->event_queue->push(event);
this->event_queue->push(*event);
}
void EventNotifier::notify()