Skip to content

Commit

Permalink
construct SlowdownInterval's members with copies instead of std::move
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
  • Loading branch information
maxime-clem committed May 29, 2024
1 parent 6bd3b05 commit 0061a02
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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{};
Expand Down

0 comments on commit 0061a02

Please sign in to comment.