aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-17 10:40:49 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-17 10:41:15 +0200
commit2504e6e5f216e34fc9aabfda0c462b1b37620a5e (patch)
tree5d9baebf09da0b03c198078d82a4f7438c42a3a3 /lib/connection.cpp
parentf779b235ddac990d17a9a8d8dd222b9e0e7abd49 (diff)
downloadlibquotient-2504e6e5f216e34fc9aabfda0c462b1b37620a5e.tar.gz
libquotient-2504e6e5f216e34fc9aabfda0c462b1b37620a5e.zip
Further fix building with Qt 6
Also: build with Qt 6 first, so that it fails sooner.
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 3e44513b..c390cc05 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -92,7 +92,7 @@ public:
// state is Invited. The spec mandates to keep Invited room state
// separately; specifically, we should keep objects for Invite and
// Leave state of the same room if the two happen to co-exist.
- QHash<QPair<QString, bool>, Room*> roomMap;
+ QHash<std::pair<QString, bool>, Room*> roomMap;
/// Mapping from serverparts to alias/room id mappings,
/// as of the last sync
QHash<QString, QString> roomAliasMap;
@@ -1707,7 +1707,7 @@ Room* Connection::provideRoom(const QString& id, Omittable<JoinState> joinState)
Q_ASSERT_X(!id.isEmpty(), __FUNCTION__, "Empty room id");
// If joinState is empty, all joinState == comparisons below are false.
- const auto roomKey = qMakePair(id, joinState == JoinState::Invite);
+ const std::pair roomKey { id, joinState == JoinState::Invite };
auto* room = d->roomMap.value(roomKey, nullptr);
if (room) {
// Leave is a special case because in transition (5a) (see the .h file)