diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-11-19 15:51:55 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-11-19 15:48:24 +0100 |
commit | fa17eef6274811be5348149443e563bca95d54a3 (patch) | |
tree | 06ae4a42afbf790642355638e64cfdfc466114c1 /src/univalue/include | |
parent | 71d068db405883d35f3800aedd4e3a2d4e854762 (diff) | |
parent | 2a55a0ed3055a2ce0a33b58a3a7bbf6e30df3dfd (diff) |
Update univalue subtree
Diffstat (limited to 'src/univalue/include')
-rw-r--r-- | src/univalue/include/univalue.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/univalue/include/univalue.h b/src/univalue/include/univalue.h index 6080516353..048e162f7d 100644 --- a/src/univalue/include/univalue.h +++ b/src/univalue/include/univalue.h @@ -100,6 +100,10 @@ public: UniValue tmpVal(val_); return push_back(tmpVal); } + bool push_back(bool val_) { + UniValue tmpVal(val_); + return push_back(tmpVal); + } bool push_back(int val_) { UniValue tmpVal(val_); return push_back(tmpVal); @@ -129,7 +133,7 @@ public: return pushKV(key, tmpVal); } bool pushKV(const std::string& key, bool val_) { - UniValue tmpVal((bool)val_); + UniValue tmpVal(val_); return pushKV(key, tmpVal); } bool pushKV(const std::string& key, int val_) { |