aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/span.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2020-03-29 17:42:38 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2020-05-12 14:19:40 -0700
commit2676aeadfa0e43dcaaccc4720623cdfe0beed528 (patch)
treef68ed37715bddfefb1b8df1595bd91b307b32903 /src/test/fuzz/span.cpp
parentab303a16d114b1e94c6cf0e4c5db5389dfa197f6 (diff)
Simplify usage of Span in several places
Diffstat (limited to 'src/test/fuzz/span.cpp')
-rw-r--r--src/test/fuzz/span.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fuzz/span.cpp b/src/test/fuzz/span.cpp
index 4aea530ef2..f6b6e8f6f0 100644
--- a/src/test/fuzz/span.cpp
+++ b/src/test/fuzz/span.cpp
@@ -18,7 +18,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
std::string str = fuzzed_data_provider.ConsumeBytesAsString(32);
- const Span<const char> span = MakeSpan(str);
+ const Span<const char> span{str};
(void)span.data();
(void)span.begin();
(void)span.end();
@@ -32,7 +32,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
}
std::string another_str = fuzzed_data_provider.ConsumeBytesAsString(32);
- const Span<const char> another_span = MakeSpan(another_str);
+ const Span<const char> another_span{another_str};
assert((span <= another_span) != (span > another_span));
assert((span == another_span) != (span != another_span));
assert((span >= another_span) != (span < another_span));