| 131 | } |
| 132 | |
| 133 | bool UniValue::pushKV(const std::string& key, const UniValue& val_) |
| 134 | { |
| 135 | if (typ != VOBJ) |
| 136 | return false; |
| 137 | |
| 138 | size_t idx; |
| 139 | if (findKey(key, idx)) |
| 140 | values[idx] = val_; |
| 141 | else |
| 142 | __pushKV(key, val_); |
| 143 | return true; |
| 144 | } |
| 145 | |
| 146 | bool UniValue::pushKVs(const UniValue& obj) |
| 147 | { |
no outgoing calls