diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-12-06 00:14:17 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-12-06 00:22:40 +0000 |
commit | 12dcdaaa54b9a4c55384e6b04379da8125fa6e7d (patch) | |
tree | bf2c64baa3c7642c7b5a716ba788936b22e6f447 /src/test/util_tests.cpp | |
parent | f35e4d906fee907f28ac5d8f32d4948e6b7b14c3 (diff) |
Don't make "in" parameters look like "out"/"in-out" parameters: pass by ref to const instead of ref to non-const
Diffstat (limited to 'src/test/util_tests.cpp')
-rw-r--r-- | src/test/util_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index 131508f5f8..a9ef0f73cc 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -1860,7 +1860,7 @@ BOOST_AUTO_TEST_CASE(test_Capitalize) BOOST_CHECK_EQUAL(Capitalize("\x00\xfe\xff"), "\x00\xfe\xff"); } -static std::string SpanToStr(Span<const char>& span) +static std::string SpanToStr(const Span<const char>& span) { return std::string(span.begin(), span.end()); } |