aboutsummaryrefslogtreecommitdiff
path: root/src/util/bip32.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-11-26 09:05:59 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2020-11-26 09:05:59 +0000
commit4848e711076c6ebc5d841feb83baeb6d2bc76c94 (patch)
treef72d2a024c8ddc89c6915d586e936185cbfc2e77 /src/util/bip32.h
parent50091592dd875a1c94030dbed74112b003732d68 (diff)
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-
Diffstat (limited to 'src/util/bip32.h')
-rw-r--r--src/util/bip32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/bip32.h b/src/util/bip32.h
index 347e83db9e..8f86f2aaa6 100644
--- a/src/util/bip32.h
+++ b/src/util/bip32.h
@@ -10,7 +10,7 @@
#include <vector>
/** Parse an HD keypaths like "m/7/0'/2000". */
-NODISCARD bool ParseHDKeypath(const std::string& keypath_str, std::vector<uint32_t>& keypath);
+[[nodiscard]] bool ParseHDKeypath(const std::string& keypath_str, std::vector<uint32_t>& keypath);
/** Write HD keypaths as strings */
std::string WriteHDKeypath(const std::vector<uint32_t>& keypath);