diff options
Autocommit at 07.05.2022 @ 09:47
1 files changed, 3 insertions, 1 deletions
| -rw-r--r-- | src/Models/Event.cpp | 4 |
diff --git a/src/Models/Event.cpp b/src/Models/Event.cpp index f570fbf..034e4b3 100644 --- a/src/Models/Event.cpp +++ b/src/Models/Event.cpp @@ -30,5 +30,7 @@ const Date& Event::get_date() const { } int Event::compare(const Event& other) { - return name.compare(other.name); + if (hall == other.hall) + return date.compare(other.date); + return hall->compare(*other.hall); } |
