Port away from QList::toSet

That's gone in Qt6, replaced by range constructors.
This commit is contained in:
Volker Krause 2022-03-09 17:32:14 +01:00
parent 205fd169e5
commit 13f28d7d6d

View file

@ -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<QString>(m_activityList.begin(), m_activityList.end());
const auto oldActivitiesList = w->plasmaActivities();
const auto oldActivities = QSet<QString>(oldActivitiesList.begin(), oldActivitiesList.end());
const auto activitiesToAdd = newActivities - oldActivities;
for (const auto &activity : activitiesToAdd) {