From 31b568fae28fc48101894d9247016566c71472ae Mon Sep 17 00:00:00 2001 From: Melvin Keskin Date: Sun, 16 Oct 2022 14:19:40 +0200 Subject: OmemoManagerPrivate: Capture lambda expression parameters explicitly (#498) Avoids warnings with C++17 and C++20. --- src/omemo/QXmppOmemoManager_p.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/omemo/QXmppOmemoManager_p.cpp') diff --git a/src/omemo/QXmppOmemoManager_p.cpp b/src/omemo/QXmppOmemoManager_p.cpp index 2f8ca00d..3dfc23a3 100644 --- a/src/omemo/QXmppOmemoManager_p.cpp +++ b/src/omemo/QXmppOmemoManager_p.cpp @@ -1895,7 +1895,14 @@ QFuture ManagerPrivate::publishOmemoData() // The device bundle is published before the device data is published. // That way, it ensures that other devices are notified about this new // device only after the corresponding device bundle is published. - auto handleResult = [=, this](bool isPublished) mutable { + auto handleResult = [this, + interface, + deviceListNodeExists, + arePublishOptionsSupported, + isAutomaticCreationSupported, + isCreationAndConfigurationSupported, + isCreationSupported, + isConfigurationSupported](bool isPublished) mutable { if (isPublished) { publishDeviceElement(deviceListNodeExists, arePublishOptionsSupported, -- cgit v1.2.3