From a6b6b8de9e17171ecf4c0836cd11779ea6c7e2fb Mon Sep 17 00:00:00 2001
From: Koichi Imai <kotty.0704@gmail.com>
Date: Mon, 24 Jun 2024 18:52:45 +0900
Subject: [PATCH] fix(autoware_behavior_path_planner_common): fix
 shadowArgument warning in getDistanceToCrosswalk

Signed-off-by: Koichi Imai <kotty.0704@gmail.com>
---
 .../autoware_behavior_path_planner_common/src/utils/utils.cpp  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/planning/behavior_path_planner/autoware_behavior_path_planner_common/src/utils/utils.cpp b/planning/behavior_path_planner/autoware_behavior_path_planner_common/src/utils/utils.cpp
index 55a6c6ff39d30..4ab1ef0d1fc23 100644
--- a/planning/behavior_path_planner/autoware_behavior_path_planner_common/src/utils/utils.cpp
+++ b/planning/behavior_path_planner/autoware_behavior_path_planner_common/src/utils/utils.cpp
@@ -734,12 +734,11 @@ double getDistanceToCrosswalk(
           boost::geometry::intersection(centerline, polygon, points_intersection);
 
           for (const auto & point : points_intersection) {
-            lanelet::ConstLanelets lanelets = {llt};
             Pose pose_point;
             pose_point.position.x = point.x();
             pose_point.position.y = point.y();
             const lanelet::ArcCoordinates & arc_crosswalk =
-              lanelet::utils::getArcCoordinates(lanelets, pose_point);
+              lanelet::utils::getArcCoordinates({llt}, pose_point);
 
             const double distance_to_crosswalk = arc_crosswalk.length;
             if (distance_to_crosswalk < min_distance_to_crosswalk) {