diff options
| author | Melvin Keskin <melvo@olomono.de> | 2022-10-16 14:19:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-16 14:19:40 +0200 |
| commit | 31b568fae28fc48101894d9247016566c71472ae (patch) | |
| tree | 800b7cdbacfed1cd9ed5ca6fe2c7c12872e7c49a /src | |
| parent | 19c9d126ab360c6e8633030e995111f19996d6c0 (diff) | |
| download | qxmpp-31b568fae28fc48101894d9247016566c71472ae.tar.gz | |
OmemoManagerPrivate: Capture lambda expression parameters explicitly (#498)
Avoids warnings with C++17 and C++20.
Diffstat (limited to 'src')
| -rw-r--r-- | src/omemo/QXmppOmemoManager_p.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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<bool> 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, |
