From 8bb558123dfc6ce90166f34a4324eee2f42b5b8d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 2 May 2022 21:25:32 +0300 Subject: Autocommit at 02.05.2022 @ 21:25 --- src/EventSystem/Event.cpp | 2 +- src/EventSystem/Event.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/EventSystem') 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 tickets; - List reservations; + OrderedList tickets; + OrderedList reservations; DateTime time; String name; const Hall* hall; -- cgit v1.3.1-23-gd82d