From 82ca6e81ad5801d4ed2f9445ea15bde4d1344539 Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Sat, 17 Sep 2022 21:21:35 +0200 Subject: Fix building with GCC --- lib/room.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/room.cpp b/lib/room.cpp index 1c1aa814..95dd0ab7 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -772,7 +772,7 @@ Omittable Room::Private::setLastReadReceipt(const QString& userId, // TODO: remove in 0.8 if (const auto member = q->user(userId); !isLocalUser(member)) QT_IGNORE_DEPRECATIONS(emit q->readMarkerForUserMoved( - member, prevEventId, storedReceipt.eventId)); + member, prevEventId, storedReceipt.eventId);) return prevEventId; } @@ -921,7 +921,7 @@ Room::Changes Room::Private::setFullyReadMarker(const QString& eventId) emit q->fullyReadMarkerMoved(prevFullyReadId, fullyReadUntilEventId); // TODO: Remove in 0.8 QT_IGNORE_DEPRECATIONS( - emit q->readMarkerMoved(prevFullyReadId, fullyReadUntilEventId)); + emit q->readMarkerMoved(prevFullyReadId, fullyReadUntilEventId);) return changes; } @@ -1973,7 +1973,7 @@ void Room::Private::postprocessChanges(Changes changes, bool saveState) if (changes & Change::PartiallyReadStats) { QT_IGNORE_DEPRECATIONS( - emit q->unreadMessagesChanged(q)); // TODO: remove in 0.8 + emit q->unreadMessagesChanged(q);) // TODO: remove in 0.8 emit q->partiallyReadStatsChanged(); } -- cgit v1.2.3