aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-17 15:28:01 +0200
committerGitHub <noreply@github.com>2022-06-17 15:28:01 +0200
commit621dfbf39f9d08be5a24070d9e222e4c3e522728 (patch)
treef2ecc0ee612c79fff81339c353311f5df8a15f00 /lib/room.cpp
parentcc69883ef7219ec42cb7bdb2e3d66256c17a6532 (diff)
parent3581b9d03fe2f169909b3977606abd3b459c0529 (diff)
downloadlibquotient-621dfbf39f9d08be5a24070d9e222e4c3e522728.tar.gz
libquotient-621dfbf39f9d08be5a24070d9e222e4c3e522728.zip
Merge #562: Build with Qt 5.15 and Qt 6
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 284d19df..f692c354 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -118,7 +118,7 @@ public:
// A map from evtId to a map of relation type to a vector of event
// pointers. Not using QMultiHash, because we want to quickly return
// a number of relations for a given event without enumerating them.
- QHash<QPair<QString, QString>, RelatedEvents> relations;
+ QHash<std::pair<QString, QString>, RelatedEvents> relations;
QString displayname;
Avatar avatar;
QHash<QString, Notification> notifications;
@@ -2687,7 +2687,7 @@ bool Room::Private::processRedaction(const RedactionEvent& redaction)
}
if (const auto* reaction = eventCast<ReactionEvent>(oldEvent)) {
const auto& targetEvtId = reaction->relation().eventId;
- const QPair lookupKey { targetEvtId, EventRelation::AnnotationType };
+ const std::pair lookupKey { targetEvtId, EventRelation::AnnotationType };
if (relations.contains(lookupKey)) {
relations[lookupKey].removeOne(reaction);
emit q->updatedEvent(targetEvtId);