diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-04-12 23:03:10 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-04-15 10:01:55 -0400 |
commit | ccccd5190898ece3ac17aa3178f320d091f221df (patch) | |
tree | 5788ed502c1de1eff00562a61edaa41f8aa8fafa /src/test/fuzz/script_ops.cpp | |
parent | 18f11fb24b47c6762e659b4bd3413f03e2c9ec99 (diff) |
script: Remove undocumented and unused operator+
Diffstat (limited to 'src/test/fuzz/script_ops.cpp')
-rw-r--r-- | src/test/fuzz/script_ops.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/fuzz/script_ops.cpp b/src/test/fuzz/script_ops.cpp index 0cd129ba7a..7d24af20ac 100644 --- a/src/test/fuzz/script_ops.cpp +++ b/src/test/fuzz/script_ops.cpp @@ -17,12 +17,16 @@ void test_one_input(const std::vector<uint8_t>& buffer) CScript script = ConsumeScript(fuzzed_data_provider); while (fuzzed_data_provider.remaining_bytes() > 0) { switch (fuzzed_data_provider.ConsumeIntegralInRange(0, 7)) { - case 0: - script += ConsumeScript(fuzzed_data_provider); + case 0: { + CScript s = ConsumeScript(fuzzed_data_provider); + script = std::move(s); break; - case 1: - script = script + ConsumeScript(fuzzed_data_provider); + } + case 1: { + const CScript& s = ConsumeScript(fuzzed_data_provider); + script = s; break; + } case 2: script << fuzzed_data_provider.ConsumeIntegral<int64_t>(); break; |