aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roompowerlevelsevent.cpp
diff options
context:
space:
mode:
authorBlack Hat <bhat@encom.eu.org>2020-01-01 14:04:47 +0800
committerBlack Hat <bhat@encom.eu.org>2020-01-01 14:04:47 +0800
commit2a54e66226863bdea4b0828675f38b75e4c7776f (patch)
treeb135fd2da57861fe687d43a176250b7f68cf24ed /lib/events/roompowerlevelsevent.cpp
parent00921320a407beaae62d01dbcf1550c3334a9258 (diff)
downloadlibquotient-2a54e66226863bdea4b0828675f38b75e4c7776f.tar.gz
libquotient-2a54e66226863bdea4b0828675f38b75e4c7776f.zip
Mark methods as const.
Diffstat (limited to 'lib/events/roompowerlevelsevent.cpp')
-rw-r--r--lib/events/roompowerlevelsevent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/events/roompowerlevelsevent.cpp b/lib/events/roompowerlevelsevent.cpp
index a6efaa63..aff64cff 100644
--- a/lib/events/roompowerlevelsevent.cpp
+++ b/lib/events/roompowerlevelsevent.cpp
@@ -31,7 +31,7 @@ void PowerLevelsEventContent::fillJson(QJsonObject* o) const {
o->insert(QStringLiteral("notifications"), {{"room", notifications.room}});
}
-int RoomPowerLevelsEvent::powerLevelForEvent(const QString &eventId) {
+int RoomPowerLevelsEvent::powerLevelForEvent(const QString &eventId) const {
auto e = events();
if (e.contains(eventId)) {
@@ -41,7 +41,7 @@ int RoomPowerLevelsEvent::powerLevelForEvent(const QString &eventId) {
return eventsDefault();
}
-int RoomPowerLevelsEvent::powerLevelForUser(const QString &userId) {
+int RoomPowerLevelsEvent::powerLevelForUser(const QString &userId) const {
auto u = users();
if (u.contains(userId)) {