Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ros_parser.cpp compilation failures on Clang #11

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading