Skip to content

Commit

Permalink
Merge pull request #11 from valgur/bugfix/clang
Browse files Browse the repository at this point in the history
Fix ros_parser.cpp compilation failures on Clang
  • Loading branch information
facontidavide authored Aug 7, 2024
2 parents 3922e2c + fd8e6d1 commit 648a50a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ros_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,7 @@ bool Parser::serializeFromJson(const std::string_view json_string,
}
else
{
rapidjson::Value next_value = value_field->GetObject();
serializeImpl(msg_node_child.get(), &next_value);
serializeImpl(msg_node_child.get(), value_field);
}
}
break;
Expand All @@ -600,7 +599,7 @@ bool Parser::serializeFromJson(const std::string_view json_string,
auto root_msg =
_schema->field_tree.croot()->value()->getMessagePtr(_schema->msg_library);

rapidjson::Value json_root = json_document.GetObject();
rapidjson::Value& json_root = json_document;
serializeImpl(root_msg.get(), &json_root);

return true;
Expand Down

0 comments on commit 648a50a

Please sign in to comment.