diff options
author | Pieter Wuille <pieter@wuille.net> | 2022-04-04 11:23:03 -0400 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-04-27 14:12:55 +0200 |
commit | d648b5120b2fefa9e599898bd26f05ecf4428fac (patch) | |
tree | a0e407006547895c72a89228cc64eb6e1952a113 /src/util/strencodings.h | |
parent | 963bc9b576f0a62caffede2ce32830aef3473995 (diff) | |
download | bitcoin-d648b5120b2fefa9e599898bd26f05ecf4428fac.tar.xz |
Make SanitizeString use string_view
Diffstat (limited to 'src/util/strencodings.h')
-rw-r--r-- | src/util/strencodings.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/strencodings.h b/src/util/strencodings.h index 678f42cb06..82645c6bf0 100644 --- a/src/util/strencodings.h +++ b/src/util/strencodings.h @@ -54,7 +54,7 @@ enum class ByteUnit : uint64_t { * @param[in] rule The set of safe chars to choose (default: least restrictive) * @return A new string without unsafe chars */ -std::string SanitizeString(const std::string& str, int rule = SAFE_CHARS_DEFAULT); +std::string SanitizeString(std::string_view str, int rule = SAFE_CHARS_DEFAULT); std::vector<unsigned char> ParseHex(std::string_view str); signed char HexDigit(char c); /* Returns true if each character in str is a hex character, and has an even |