From 0c43d3eeeee0a983008882bfa4c0e7ce12eb4e9b Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 12 Jul 2023 18:51:21 +0200 Subject: [PATCH] Fix equal operator deprecated in c++20 --- src/models/locationsmodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/locationsmodel.cpp b/src/models/locationsmodel.cpp index 1bc14e95e..5f7dafd04 100644 --- a/src/models/locationsmodel.cpp +++ b/src/models/locationsmodel.cpp @@ -8,7 +8,7 @@ using namespace Quotient; LocationsModel::LocationsModel(QObject *parent) : QAbstractListModel(parent) { - connect(this, &LocationsModel::roomChanged, this, [=]() { + connect(this, &LocationsModel::roomChanged, this, [this]() { for (const auto &event : m_room->messageEvents()) { if (!is(*event)) { continue; @@ -18,7 +18,7 @@ LocationsModel::LocationsModel(QObject *parent) addLocation(eventCast(&e)); } } - connect(m_room, &NeoChatRoom::aboutToAddHistoricalMessages, this, [=](const auto &events) { + connect(m_room, &NeoChatRoom::aboutToAddHistoricalMessages, this, [this](const auto &events) { for (const auto &event : events) { if (!is(*event)) { continue; @@ -29,7 +29,7 @@ LocationsModel::LocationsModel(QObject *parent) } } }); - connect(m_room, &NeoChatRoom::aboutToAddNewMessages, this, [=](const auto &events) { + connect(m_room, &NeoChatRoom::aboutToAddNewMessages, this, [this](const auto &events) { for (const auto &event : events) { if (!is(*event)) { continue;