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;