diff options
| author | practicalswift <[email protected]> | 2018-09-25 07:00:36 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-11-05 17:03:11 +0100 |
| commit | 9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a (patch) | |
| tree | c3cd7df7ea0228dee67b7160ba960a6eba5bbac4 /src/script/descriptor.cpp | |
| parent | tests: Explicitly ignore the return value of DecodeBase58(...) (diff) | |
| download | discoin-9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a.tar.xz discoin-9cc0230cfc1ae9b9c1c905cd9ac613bc98bfa43a.zip | |
Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes.
Diffstat (limited to 'src/script/descriptor.cpp')
| -rw-r--r-- | src/script/descriptor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 90c4ddcc1..d343972c4 100644 --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -478,7 +478,7 @@ std::vector<Span<const char>> Split(const Span<const char>& sp, char sep) } /** Parse a key path, being passed a split list of elements (the first element is ignored). */ -bool ParseKeyPath(const std::vector<Span<const char>>& split, KeyPath& out) +NODISCARD bool ParseKeyPath(const std::vector<Span<const char>>& split, KeyPath& out) { for (size_t i = 1; i < split.size(); ++i) { Span<const char> elem = split[i]; |