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:
parent
c64a8daf50
commit
15a4940aa7
@ -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{};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user