Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem
diff options
context:
space:
mode:
2 files changed, 4 insertions, 4 deletions
-rw-r--r--src/EventSystem/Event.cpp2
-rw-r--r--src/EventSystem/Event.h6
diff --git a/src/EventSystem/Event.cpp b/src/EventSystem/Event.cpp
index 7c4db9e..cdbc017 100644
--- a/src/EventSystem/Event.cpp
+++ b/src/EventSystem/Event.cpp
@@ -11,7 +11,7 @@ Event::Event(const Hall* hall, String name, DateTime time) {
StatusCode Event::reserveTicket(const Ticket& ticket, const char* password, const char* note) {
// TODO: if (reservations.contains(ticket) || tickets.contain(ticket)) return E_...
- reservations.add(Reservation(ticket, password, note));
+ reservations.insert(Reservation(ticket, password, note));
return Success;
}
diff --git a/src/EventSystem/Event.h b/src/EventSystem/Event.h
index 1ea2ff2..a72ba4b 100644
--- a/src/EventSystem/Event.h
+++ b/src/EventSystem/Event.h
@@ -1,7 +1,7 @@
#ifndef HEADER_EVENTSYSTEM_EVENT
#define HEADER_EVENTSYSTEM_EVENT
-#include "../List/List.h"
+#include "../OrderedList/OrderedList.h"
#include "../DateTime/DateTime.h"
#include "../String/String.h"
#include "../Venue/Hall.h"
@@ -10,8 +10,8 @@
#include "StatusCodes.h"
class Event {
- List<Ticket> tickets;
- List<Reservation> reservations;
+ OrderedList<Ticket> tickets;
+ OrderedList<Reservation> reservations;
DateTime time;
String name;
const Hall* hall;