diff options
1 files changed, 4 insertions, 2 deletions
| -rw-r--r-- | src/Services/EventService.cpp | 6 |
diff --git a/src/Services/EventService.cpp b/src/Services/EventService.cpp index 912b66b..c3124cc 100644 --- a/src/Services/EventService.cpp +++ b/src/Services/EventService.cpp @@ -25,12 +25,14 @@ unsigned EventService::indexOfEvent(const char* name, const Date& date) { /* Public */ -EventService::EventService() { +EventService::EventService(const HallService* hs) { + this->hs = hs; events = OrderedList<Event>(); indSoonestUpcoming = 0; } -EventService::EventService(const Event* events, unsigned eventCount) { +EventService::EventService(const HallService* hs, const Event* events, unsigned eventCount) { + this->hs = hs; this->events = OrderedList<Event>(events, eventCount); indSoonestUpcoming = 0; updateSoonestUpcoming(); |
