aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-10-10 22:26:08 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-10-10 22:27:26 +0200
commit762be1e73d6f5021e63fc9a4fea273951b3fb113 (patch)
treefaa7a652a2b921fd820b673d9b3e7d49e9b0485c
parent01103222dc59526b37d594b93b0b1cd7473e3f6f (diff)
downloadlibquotient-762be1e73d6f5021e63fc9a4fea273951b3fb113.tar.gz
libquotient-762be1e73d6f5021e63fc9a4fea273951b3fb113.zip
ReadReceipt::operator==/!=: Add const where it's due
-rw-r--r--lib/room.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/room.h b/lib/room.h
index ca9f36cb..73f28a6e 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -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)
{