aboutsummaryrefslogtreecommitdiff
path: root/src/util/strencodings.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-09-25 07:00:36 +0200
committerpracticalswift <[email protected]>2018-11-05 17:03:11 +0100
commit9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a (patch)
treec3cd7df7ea0228dee67b7160ba960a6eba5bbac4 /src/util/strencodings.cpp
parenttests: Explicitly ignore the return value of DecodeBase58(...) (diff)
downloaddiscoin-9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a.tar.xz
discoin-9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a.zip
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 2a2df4333..46146be66 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;