diff options
author | MacroFake <falke.marco@gmail.com> | 2022-07-29 15:23:04 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-07-29 15:24:42 +0200 |
commit | fa7bef2e80c9c290b3e97114cfa7afdea5cbd53c (patch) | |
tree | 77d1892a411678c4b943110d35384c27cb9e4705 /src/univalue/include/univalue.h | |
parent | 7f79746bf046d0028bb68f265804b9774dec2acb (diff) |
univalue: Remove unused and confusing set*() return value
Diffstat (limited to 'src/univalue/include/univalue.h')
-rw-r--r-- | src/univalue/include/univalue.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/univalue/include/univalue.h b/src/univalue/include/univalue.h index 230a5fd096..8ba6fd5425 100644 --- a/src/univalue/include/univalue.h +++ b/src/univalue/include/univalue.h @@ -47,16 +47,16 @@ public: void clear(); - bool setNull(); - bool setBool(bool val); - bool setNumStr(const std::string& val); - bool setInt(uint64_t val); - bool setInt(int64_t val); - bool setInt(int val_) { return setInt((int64_t)val_); } - bool setFloat(double val); - bool setStr(const std::string& val); - bool setArray(); - bool setObject(); + void setNull(); + void setBool(bool val); + void setNumStr(const std::string& val); + void setInt(uint64_t val); + void setInt(int64_t val); + void setInt(int val_) { return setInt(int64_t{val_}); } + void setFloat(double val); + void setStr(const std::string& val); + void setArray(); + void setObject(); enum VType getType() const { return typ; } const std::string& getValStr() const { return val; } |