diff options
author | laanwj <126646+laanwj@users.noreply.github.com> | 2022-05-30 19:47:28 +0200 |
---|---|---|
committer | laanwj <126646+laanwj@users.noreply.github.com> | 2022-05-30 19:47:36 +0200 |
commit | c3936cc53dabc5de531249b8097e1c25f41a4c3b (patch) | |
tree | 96cd3cbff27e08575e89329e11a8cb9edbcc3340 /src/rpc | |
parent | fcf6c8f4eb217763545ede1766831a6b93f583bd (diff) | |
parent | 7fcac96597218691724002c2b8ecb3dbcf60bf06 (diff) |
Merge bitcoin/bitcoin#25241: [23.x] rpc: Capture potentially large UniValue by ref for rpcdoccheck
7fcac96597218691724002c2b8ecb3dbcf60bf06 rpc: Capture potentially large UniValue by ref for rpcdoccheck (Martin Zumsande)
Pull request description:
ACKs for top commit:
fanquake:
ACK 7fcac96597218691724002c2b8ecb3dbcf60bf06
Tree-SHA512: 7b60d35c84a47ff2b16aed06b4ea82ff3f60cc24409e2927b9ed618f8f939252903417ef93b711171e22b15daf5d857964687fde25ec554153337c996e5e27fa
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 7c859268be..1754418034 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -584,7 +584,7 @@ UniValue RPCHelpMan::HandleRequest(const JSONRPCRequest& request) const throw std::runtime_error(ToString()); } const UniValue ret = m_fun(*this, request); - CHECK_NONFATAL(std::any_of(m_results.m_results.begin(), m_results.m_results.end(), [ret](const RPCResult& res) { return res.MatchesType(ret); })); + CHECK_NONFATAL(std::any_of(m_results.m_results.begin(), m_results.m_results.end(), [&ret](const RPCResult& res) { return res.MatchesType(ret); })); return ret; } |