mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-30 02:15:54 +02:00
rpc: avoid copying into UniValue
These are simple (and hopefully obviously correct) copies that can be moves instead.
This commit is contained in:
@@ -391,7 +391,7 @@ UniValue RPCConvertNamedValues(const std::string &strMethod, const std::vector<s
|
||||
// Use pushKVEnd instead of pushKV to avoid overwriting an explicit
|
||||
// "args" value with an implicit one. Let the RPC server handle the
|
||||
// request as given.
|
||||
params.pushKVEnd("args", positional_args);
|
||||
params.pushKVEnd("args", std::move(positional_args));
|
||||
}
|
||||
|
||||
return params;
|
||||
|
||||
Reference in New Issue
Block a user