diff options
| author | Pieter Wuille <[email protected]> | 2020-05-20 11:13:06 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2020-05-24 10:35:00 -0700 |
| commit | 92beff15d3ae2646c00bd78146d7592a7097ce9c (patch) | |
| tree | bb88450e1500034b00d626e1e2babeb8bc977d5a /src/test/fuzz/string.cpp | |
| parent | Convert wallet to new serialization (diff) | |
| download | discoin-92beff15d3ae2646c00bd78146d7592a7097ce9c.tar.xz discoin-92beff15d3ae2646c00bd78146d7592a7097ce9c.zip | |
Convert LimitedString to formatter
Diffstat (limited to 'src/test/fuzz/string.cpp')
| -rw-r--r-- | src/test/fuzz/string.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fuzz/string.cpp b/src/test/fuzz/string.cpp index 3c1f911f7..50984b1ae 100644 --- a/src/test/fuzz/string.cpp +++ b/src/test/fuzz/string.cpp @@ -93,7 +93,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) { CDataStream data_stream{SER_NETWORK, INIT_PROTO_VERSION}; std::string s; - LimitedString<10> limited_string = LIMITED_STRING(s, 10); + auto limited_string = LIMITED_STRING(s, 10); data_stream << random_string_1; try { data_stream >> limited_string; @@ -108,7 +108,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) } { CDataStream data_stream{SER_NETWORK, INIT_PROTO_VERSION}; - const LimitedString<10> limited_string = LIMITED_STRING(random_string_1, 10); + const auto limited_string = LIMITED_STRING(random_string_1, 10); data_stream << limited_string; std::string deserialized_string; data_stream >> deserialized_string; |