From 9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 25 Sep 2018 07:00:36 +0200 Subject: Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes. --- src/util/strencodings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/strencodings.cpp') 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; -- cgit v1.2.3