Small cleanup

This commit is contained in:
emeric
2022-12-11 11:33:44 +01:00
parent cb1b33593f
commit 495005357c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ Response::writeJSON(std::ostream& os)
{
Json::Object res;
auto valueToJsonValue {[](const Node::Value& value) -> Json::Value
auto valueToJsonValue {[](const Node::ValueType& value) -> Json::Value
{
if (std::holds_alternative<std::string>(value))
return Json::Value {std::get<std::string>(value)};
+3 -3
View File
@@ -206,9 +206,9 @@ class Response
void setVersionAttribute(ProtocolVersion version);
friend class Response;
using Value = std::variant<std::string, bool, long long>;
std::map<std::string, Value> _attributes;
std::optional<Value> _value;
using ValueType = std::variant<std::string, bool, long long>;
std::map<std::string, ValueType> _attributes;
std::optional<ValueType> _value;
std::map<std::string, std::vector<Node>> _children;
std::map<std::string, std::vector<Node>> _childrenArrays;
};