diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-10-10 22:26:08 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-10-10 22:27:26 +0200 |
commit | 762be1e73d6f5021e63fc9a4fea273951b3fb113 (patch) | |
tree | faa7a652a2b921fd820b673d9b3e7d49e9b0485c | |
parent | 01103222dc59526b37d594b93b0b1cd7473e3f6f (diff) | |
download | libquotient-762be1e73d6f5021e63fc9a4fea273951b3fb113.tar.gz libquotient-762be1e73d6f5021e63fc9a4fea273951b3fb113.zip |
ReadReceipt::operator==/!=: Add const where it's due
-rw-r--r-- | lib/room.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -81,11 +81,14 @@ public: QString eventId; QDateTime timestamp; - bool operator==(const ReadReceipt& other) + bool operator==(const ReadReceipt& other) const { return eventId == other.eventId && timestamp == other.timestamp; } - bool operator!=(const ReadReceipt& other) { return !operator==(other); } + bool operator!=(const ReadReceipt& other) const + { + return !operator==(other); + } }; inline void swap(ReadReceipt& lhs, ReadReceipt& rhs) { |