From 4e078ecef77dd202c19738f7587e4b7208f2996c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 14:38:47 +0300 Subject: Autocommit at 05.05.2022 @ 14:38 --- 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 450eca9..7bd0428 100644 --- a/src/EventSystem/Event.cpp +++ b/src/EventSystem/Event.cpp @@ -45,3 +45,8 @@ StatusCode Event::buyTicketFromReservation(const Reservation& reservation, const tickets.insert(reservation.get_ticket()); return Success; } + +int Event::compare(const Event& other) { + // TODO: improve + return name.compare(other.name); +} -- cgit v1.3.1-23-gd82d