From 13f891185de9a678d37fe377c1426805c2e974ac Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 1 May 2018 16:36:53 +0900 Subject: User::processEvent: add const --- lib/user.cpp | 2 +- lib/user.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/user.cpp b/lib/user.cpp index c4fbfe35..91b340d5 100644 --- a/lib/user.cpp +++ b/lib/user.cpp @@ -358,7 +358,7 @@ QUrl User::avatarUrl(const Room* room) const return avatarObject(room).url(); } -void User::processEvent(RoomMemberEvent* event, const Room* room) +void User::processEvent(const RoomMemberEvent* event, const Room* room) { if (event->membership() != MembershipType::Invite && event->membership() != MembershipType::Join) diff --git a/lib/user.h b/lib/user.h index f94fbee4..8ac96539 100644 --- a/lib/user.h +++ b/lib/user.h @@ -103,7 +103,8 @@ namespace QMatrixClient QString avatarMediaId(const Room* room = nullptr) const; QUrl avatarUrl(const Room* room = nullptr) const; - void processEvent(RoomMemberEvent* event, const Room* r = nullptr); + void processEvent(const RoomMemberEvent* event, + const Room* r = nullptr); public slots: void rename(const QString& newName); -- cgit v1.2.3