From 0061a0210d3f44cb9eb283f337ee9333d4de6f3f Mon Sep 17 00:00:00 2001 From: Maxime CLEMENT Date: Wed, 29 May 2024 18:53:14 +0900 Subject: [PATCH] construct SlowdownInterval's members with copies instead of std::move Signed-off-by: Maxime CLEMENT --- .../velocity_planning_result.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/planning/motion_velocity_planner/autoware_motion_velocity_planner_common/include/autoware_motion_velocity_planner_common/velocity_planning_result.hpp b/planning/motion_velocity_planner/autoware_motion_velocity_planner_common/include/autoware_motion_velocity_planner_common/velocity_planning_result.hpp index 373f122af60b9..9b011b74503f2 100644 --- a/planning/motion_velocity_planner/autoware_motion_velocity_planner_common/include/autoware_motion_velocity_planner_common/velocity_planning_result.hpp +++ b/planning/motion_velocity_planner/autoware_motion_velocity_planner_common/include/autoware_motion_velocity_planner_common/velocity_planning_result.hpp @@ -29,8 +29,10 @@ namespace autoware::motion_velocity_planner { struct SlowdownInterval { - SlowdownInterval(geometry_msgs::msg::Point from_, geometry_msgs::msg::Point to_, const double vel) - : from{std::move(from_)}, to{std::move(to_)}, velocity{vel} + SlowdownInterval( + const geometry_msgs::msg::Point & from_, const geometry_msgs::msg::Point & to_, + const double vel) + : from{from_}, to{to_}, velocity{vel} { } geometry_msgs::msg::Point from{};