From 6d3951dcd6a59e90177eccaba5dde1eacb1c0e7b Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Wed, 3 Nov 2021 19:51:38 +0100 Subject: [PATCH] Fix very weird msvc compiler issue --- src/sync/sync.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sync/sync.cpp b/src/sync/sync.cpp index 56003253..d885d40d 100644 --- a/src/sync/sync.cpp +++ b/src/sync/sync.cpp @@ -703,19 +703,19 @@ void Sync::linkUpAllDevices() } if (syncDevices.count() == ++m_deviceResponses) { // We have now received all responses for all devices - for (const QString &device : syncDevices) { + for (const QString &syncdevice : syncDevices) { if (!m_gpodder) { return; } - UploadSubscriptionRequest *upSubRequest = m_gpodder->uploadSubscriptionChanges(m_syncUpAllSubscriptions, QStringList(), device); - connect(upSubRequest, &UploadSubscriptionRequest::finished, this, [=]() { + UploadSubscriptionRequest *upSubRequest = m_gpodder->uploadSubscriptionChanges(m_syncUpAllSubscriptions, QStringList(), syncdevice); + connect(upSubRequest, &UploadSubscriptionRequest::finished, this, [this, upSubRequest, syncdevice]() { if (upSubRequest->error()) { Q_EMIT error(Error::Type::SyncError, QStringLiteral(""), QStringLiteral(""), upSubRequest->error(), upSubRequest->errorString(), - i18n("Could not upload subscriptions for device %1", device)); + i18n("Could not upload subscriptions for device %1", syncdevice)); } upSubRequest->deleteLater(); });