From 13f28d7d6dd0a3f0e7bf3e82d53d8eff38ff3eb3 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Wed, 9 Mar 2022 17:32:14 +0100 Subject: [PATCH] Port away from QList::toSet That's gone in Qt6, replaced by range constructors. --- src/abstract_client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/abstract_client.cpp b/src/abstract_client.cpp index 6d5471b80e..3ef9321980 100644 --- a/src/abstract_client.cpp +++ b/src/abstract_client.cpp @@ -1652,8 +1652,9 @@ void AbstractClient::setupWindowManagementInterface() // Notify clients on activities changes connect(this, &AbstractClient::activitiesChanged, w, [w, this] { - const auto newActivities = m_activityList.toSet(); - const auto oldActivities = w->plasmaActivities().toSet(); + const auto newActivities = QSet(m_activityList.begin(), m_activityList.end()); + const auto oldActivitiesList = w->plasmaActivities(); + const auto oldActivities = QSet(oldActivitiesList.begin(), oldActivitiesList.end()); const auto activitiesToAdd = newActivities - oldActivities; for (const auto &activity : activitiesToAdd) {