From 9c5befc9e7b3e2830371f42525fde65d3efe1552 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 21:09:06 +0300 Subject: Autocommit at 05.05.2022 @ 21:09 --- src/EventSystem/Ticket.cpp | 4 ++-- src/VenueConsoleUI.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/EventSystem/Ticket.cpp b/src/EventSystem/Ticket.cpp index 997045e..0929144 100644 --- a/src/EventSystem/Ticket.cpp +++ b/src/EventSystem/Ticket.cpp @@ -27,8 +27,8 @@ void Ticket::write(std::ostream& ostr) const { int Ticket::compare(const Ticket& other) const { if (row == other.row) - return (seat > other.seat) - (other.seat < seat); - return (row > other.row) - (other.row < row); + return seat - other.seat; + return row - other.row; } /* General */ diff --git a/src/VenueConsoleUI.cpp b/src/VenueConsoleUI.cpp index 6074902..617d8f9 100644 --- a/src/VenueConsoleUI.cpp +++ b/src/VenueConsoleUI.cpp @@ -80,7 +80,6 @@ void command_buyTicket() { if (reserved) { char pass[PASSWORD_LEN]; inputLineBox("Enter reservation password: ", pass, PASSWORD_LEN); - std::cout << "Saved- " << pass << std::endl; handleStatusCode(v->get_es().buyTicket(name, date, tic, pass), ticketManagementMenu); } else -- cgit v1.3.1-26-gb76a