Skip to content

Commit

Permalink
fix some cppcheck error
Browse files Browse the repository at this point in the history
Signed-off-by: Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed May 10, 2024
1 parent 14d0f9c commit b5e38a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions planning/route_handler/test/route_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ std::vector<LaneletPrimitive> parse_lanelet_primitives(const YAML::Node & node)
{
std::vector<LaneletPrimitive> primitives;
primitives.reserve(node.size());
for (const auto & p : node) {
primitives.emplace_back(parse_lanelet_primitive(p));
}
std::transform(node.begin(), node.end(), std::back_inserter(primitives), [&](const auto & p) {
return parse_lanelet_primitive(p);
});

return primitives;
}
Expand Down
2 changes: 1 addition & 1 deletion planning/route_handler/test/test_route_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ using autoware_auto_mapping_msgs::msg::HADMapBin;
class TestRouteHandler : public ::testing::Test
{
public:
TestRouteHandler() { route_handler_ = std::make_shared<RouteHandler>(makeMapBinMsg()); }
TestRouteHandler() : route_handler_(std::make_shared<RouteHandler>(makeMapBinMsg())) {}
TestRouteHandler(const TestRouteHandler &) = delete;
TestRouteHandler(TestRouteHandler &&) = delete;
TestRouteHandler & operator=(const TestRouteHandler &) = delete;
Expand Down

0 comments on commit b5e38a9

Please sign in to comment.