diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2024-05-13 20:20:10 +0000 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2024-05-20 16:48:19 +0000 |
commit | d7707d9843b03f20d2a8c5a45d7b3db58e169e6f (patch) | |
tree | 30b3b88003c41ef7521e1b2e7bbb6add06892505 /src/test/script_tests.cpp | |
parent | ecd23656db174adef61d3bd753d02698c3528192 (diff) |
rpc: avoid copying into UniValue
These are simple (and hopefully obviously correct) copies that can be moves
instead.
Diffstat (limited to 'src/test/script_tests.cpp')
-rw-r--r-- | src/test/script_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp index 314b26609c..39b53295e7 100644 --- a/src/test/script_tests.cpp +++ b/src/test/script_tests.cpp @@ -396,7 +396,7 @@ public: wit.push_back(HexStr(scriptWitness.stack[i])); } wit.push_back(ValueFromAmount(nValue)); - array.push_back(wit); + array.push_back(std::move(wit)); } array.push_back(FormatScript(spendTx.vin[0].scriptSig)); array.push_back(FormatScript(creditTx->vout[0].scriptPubKey)); |