Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Reservation.cpp
diff options
context:
space:
mode:
Commit0521180c61e7d8970f164f3154599e49800e85c6 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 21:40:36 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 21:40:36 +0300
Files33d4af5bcc2acc4fdde00401ae522365c19c17de /src/EventSystem/Reservation.cpp
FMI-OOP-P1_TicketSystem-0521180c61e7d8970f164f3154599e49800e85c6.tar
FMI-OOP-P1_TicketSystem-0521180c61e7d8970f164f3154599e49800e85c6.tar.gz
FMI-OOP-P1_TicketSystem-0521180c61e7d8970f164f3154599e49800e85c6.zip
Parent26d3ecce1211b58dbe79302844395c550340d946 (diff)
Autocommit at 02.05.2022 @ 21:40
1 files changed, 4 insertions, 0 deletions
-rw-r--r--src/EventSystem/Reservation.cpp4
diff --git a/src/EventSystem/Reservation.cpp b/src/EventSystem/Reservation.cpp
index ba12547..613a715 100644
--- a/src/EventSystem/Reservation.cpp
+++ b/src/EventSystem/Reservation.cpp
@@ -21,3 +21,7 @@ void Reservation::write(std::ostream& ostr) const {
ostr.write(password, sizeof(password));
ostr.write(note, sizeof(note));
}
+
+int Reservation::compare(const Reservation& other) const {
+ return ticket.compare(other.ticket);
+}