diff options
author | Pieter Wuille <pieter@wuille.net> | 2022-04-04 14:10:10 -0400 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-04-27 14:12:55 +0200 |
commit | 8ffbd1412d887535ce5eb613884858c319bd12be (patch) | |
tree | b5389e1e788d87fc12edcd7dfe94fbad3b87647e /src/netaddress.cpp | |
parent | 1a72d62152bfdd7c5c2b2704b679f894e7d35e37 (diff) | |
download | bitcoin-8ffbd1412d887535ce5eb613884858c319bd12be.tar.xz |
Make DecodeBase{32,64} take string_view arguments
Diffstat (limited to 'src/netaddress.cpp')
-rw-r--r-- | src/netaddress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netaddress.cpp b/src/netaddress.cpp index 7943eaf257..774a6fb254 100644 --- a/src/netaddress.cpp +++ b/src/netaddress.cpp @@ -234,7 +234,7 @@ bool CNetAddr::SetTor(const std::string& addr) return false; } - auto input = DecodeBase32(addr.substr(0, addr.size() - suffix_len)); + auto input = DecodeBase32(std::string_view{addr}.substr(0, addr.size() - suffix_len)); if (!input) { return false; |