From 4848e711076c6ebc5d841feb83baeb6d2bc76c94 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 26 Nov 2020 09:05:59 +0000 Subject: scripted-diff: Use [[nodiscard]] (C++17) instead of NODISCARD -BEGIN VERIFY SCRIPT- sed -i "s/NODISCARD/[[nodiscard]]/g" $(git grep -l "NODISCARD" ":(exclude)src/bench/nanobench.h" ":(exclude)src/attributes.h") -END VERIFY SCRIPT- --- src/util/moneystr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/moneystr.h') diff --git a/src/util/moneystr.h b/src/util/moneystr.h index 9d2b6da0fc..da7f673cda 100644 --- a/src/util/moneystr.h +++ b/src/util/moneystr.h @@ -19,6 +19,6 @@ */ std::string FormatMoney(const CAmount& n); /** Parse an amount denoted in full coins. E.g. "0.0034" supplied on the command line. **/ -NODISCARD bool ParseMoney(const std::string& str, CAmount& nRet); +[[nodiscard]] bool ParseMoney(const std::string& str, CAmount& nRet); #endif // BITCOIN_UTIL_MONEYSTR_H -- cgit v1.2.3