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
This commit is contained in:
Ingo Klöcker 2022-05-05 10:32:34 +02:00
parent c64a8daf50
commit 15a4940aa7

View File

@ -123,7 +123,7 @@ static QGpgMERefreshOpenPGPKeysJob::result_type refresh_keys(Context *ctx, const
GpgME::Error QGpgMERefreshOpenPGPKeysJob::start(const std::vector<GpgME::Key> &keys)
{
run(std::bind(&refresh_keys, std::placeholders::_1, keys));
run([keys](Context *ctx) { return refresh_keys(ctx, keys); });
return Error{};
}