From 5b2c0c8cf9b8e014ffd57e130f1b51d8f28255e8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 17:23:23 +0300 Subject: Autocommit at 05.05.2022 @ 17:23 --- src/EventSystem/Event.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/EventSystem/Event.cpp') diff --git a/src/EventSystem/Event.cpp b/src/EventSystem/Event.cpp index 6940aed..3deb58c 100644 --- a/src/EventSystem/Event.cpp +++ b/src/EventSystem/Event.cpp @@ -58,6 +58,11 @@ StatusCode Event::buyTicketFromReservation(const Reservation& reservation, const return Success; } +bool Event::ticketIsFree(unsigned row, unsigned seat) { + Ticket temp(row, seat); + unsigned ind = tickets.findIndex(temp); +} + int Event::compare(const Event& other) { // TODO: improve return name.compare(other.name); -- cgit v1.3.1-23-gd82d