diff options
author | Black Hat <bhat@encom.eu.org> | 2020-01-01 14:04:47 +0800 |
---|---|---|
committer | Black Hat <bhat@encom.eu.org> | 2020-01-01 14:04:47 +0800 |
commit | 2a54e66226863bdea4b0828675f38b75e4c7776f (patch) | |
tree | b135fd2da57861fe687d43a176250b7f68cf24ed /lib/events/roompowerlevelsevent.h | |
parent | 00921320a407beaae62d01dbcf1550c3334a9258 (diff) | |
download | libquotient-2a54e66226863bdea4b0828675f38b75e4c7776f.tar.gz libquotient-2a54e66226863bdea4b0828675f38b75e4c7776f.zip |
Mark methods as const.
Diffstat (limited to 'lib/events/roompowerlevelsevent.h')
-rw-r--r-- | lib/events/roompowerlevelsevent.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/events/roompowerlevelsevent.h b/lib/events/roompowerlevelsevent.h index 3a940380..b3405c56 100644 --- a/lib/events/roompowerlevelsevent.h +++ b/lib/events/roompowerlevelsevent.h @@ -40,23 +40,23 @@ public: : StateEvent(typeId(), obj) {} - int invite() { return content().invite; } - int kick() { return content().kick; } - int ban() { return content().ban; } + int invite() const { return content().invite; } + int kick() const { return content().kick; } + int ban() const { return content().ban; } - int redact() { return content().redact; } + int redact() const { return content().redact; } - QHash<QString, int> events() { return content().events; } - int eventsDefault() { return content().eventsDefault; } - int stateDefault() { return content().stateDefault; } + QHash<QString, int> events() const { return content().events; } + int eventsDefault() const { return content().eventsDefault; } + int stateDefault() const { return content().stateDefault; } - QHash<QString, int> users() { return content().users; } - int usersDefault() { return content().usersDefault; } + QHash<QString, int> users() const { return content().users; } + int usersDefault() const { return content().usersDefault; } - int roomNotification() { return content().notifications.room; } + int roomNotification() const { return content().notifications.room; } - int powerLevelForEvent(const QString& eventId); - int powerLevelForUser(const QString& userId); + int powerLevelForEvent(const QString& eventId) const; + int powerLevelForUser(const QString& userId) const; private: }; |