Skip to content

Commit 9b9d717

Browse files
committed
wallet: Remove redundant lambda function arg in handleTransactionChanged
Makes the build warning-clean again here: bitcoin/src/interfaces/wallet.cpp:425:18: warning: lambda capture 'this' is not used [-Wunused-lambda-capture] [fn, this](CWallet*, const uint256& txid, ChangeType status) { fn(txid, status); })); ^
1 parent dd1ca9e commit 9b9d717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class WalletImpl : public Wallet
422422
std::unique_ptr<Handler> handleTransactionChanged(TransactionChangedFn fn) override
423423
{
424424
return MakeHandler(m_wallet.NotifyTransactionChanged.connect(
425-
[fn, this](CWallet*, const uint256& txid, ChangeType status) { fn(txid, status); }));
425+
[fn](CWallet*, const uint256& txid, ChangeType status) { fn(txid, status); }));
426426
}
427427
std::unique_ptr<Handler> handleWatchOnlyChanged(WatchOnlyChangedFn fn) override
428428
{

0 commit comments

Comments
 (0)