From 15a4940aa73019bce002302b14aaa73312da3df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Thu, 5 May 2022 10:32:34 +0200 Subject: [PATCH] qt: Use lambda instead of std::bind * lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp (QGpgMERefreshOpenPGPKeysJob::start): Replace std::bind call with a lambda. -- GnuPG-bug-id: 5951 --- lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp b/lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp index 36ea9a1b..721d3cfc 100644 --- a/lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp +++ b/lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp @@ -123,7 +123,7 @@ static QGpgMERefreshOpenPGPKeysJob::result_type refresh_keys(Context *ctx, const GpgME::Error QGpgMERefreshOpenPGPKeysJob::start(const std::vector &keys) { - run(std::bind(&refresh_keys, std::placeholders::_1, keys)); + run([keys](Context *ctx) { return refresh_keys(ctx, keys); }); return Error{}; }