aboutsummaryrefslogtreecommitdiff
path: root/src/util/strencodings.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-09-25 07:00:36 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-11-05 17:03:11 +0100
commit9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a (patch)
treec3cd7df7ea0228dee67b7160ba960a6eba5bbac4 /src/util/strencodings.cpp
parent579497e77a3a71b2d8e44a6a3e00a8a46366d5c0 (diff)
downloadbitcoin-9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a.tar.xz
Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes.
Diffstat (limited to 'src/util/strencodings.cpp')
-rw-r--r--src/util/strencodings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/strencodings.cpp b/src/util/strencodings.cpp
index 2a2df43337..46146be66f 100644
--- a/src/util/strencodings.cpp
+++ b/src/util/strencodings.cpp
@@ -263,7 +263,7 @@ std::string DecodeBase32(const std::string& str)
return std::string((const char*)vchRet.data(), vchRet.size());
}
-static bool ParsePrechecks(const std::string& str)
+NODISCARD static bool ParsePrechecks(const std::string& str)
{
if (str.empty()) // No empty string allowed
return false;