Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
2 files changed, 3 insertions, 3 deletions
-rw-r--r--src/Services/EventService.cpp4
-rw-r--r--src/Services/EventService.h2
diff --git a/src/Services/EventService.cpp b/src/Services/EventService.cpp
index 5fd9233..912b66b 100644
--- a/src/Services/EventService.cpp
+++ b/src/Services/EventService.cpp
@@ -36,11 +36,11 @@ EventService::EventService(const Event* events, unsigned eventCount) {
updateSoonestUpcoming();
}
-StatusCode EventService::createEvent(const Hall* hall, String name, Date date) {
+StatusCode EventService::createEvent(int hallNumber, const String& name, const Date& date) {
if (indexOfEvent(date) < events.get_count())
return E_EventWillOverlap;
- events.insert(Event(hall, name, date));
+ events.insert(Event(*hall, name, date));
return Success;
}
diff --git a/src/Services/EventService.h b/src/Services/EventService.h
index c856c58..f0dd5b3 100644
--- a/src/Services/EventService.h
+++ b/src/Services/EventService.h
@@ -19,7 +19,7 @@ public:
EventService();
EventService(const Event* events, unsigned eventCount);
- StatusCode createEvent(const Hall* hall, String name, Date date);
+ StatusCode createEvent(int hallNumber, const String& name, const Date& date);
StatusCode cancelEvent(const char* name, const Date& date);
StatusCode reserveTicket(const char* name, const Date& date, const char* password, const char* note, unsigned seatRow, unsigned seatColumn);