mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-14 06:32:33 +01:00
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); }));
^
This commit is contained in:
@@ -422,7 +422,7 @@ public:
|
|||||||
std::unique_ptr<Handler> handleTransactionChanged(TransactionChangedFn fn) override
|
std::unique_ptr<Handler> handleTransactionChanged(TransactionChangedFn fn) override
|
||||||
{
|
{
|
||||||
return MakeHandler(m_wallet.NotifyTransactionChanged.connect(
|
return MakeHandler(m_wallet.NotifyTransactionChanged.connect(
|
||||||
[fn, this](CWallet*, const uint256& txid, ChangeType status) { fn(txid, status); }));
|
[fn](CWallet*, const uint256& txid, ChangeType status) { fn(txid, status); }));
|
||||||
}
|
}
|
||||||
std::unique_ptr<Handler> handleWatchOnlyChanged(WatchOnlyChangedFn fn) override
|
std::unique_ptr<Handler> handleWatchOnlyChanged(WatchOnlyChangedFn fn) override
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user