From 9f9d46786dc536e1965b6734e61b945837e204a4 Mon Sep 17 00:00:00 2001
From: "ziqi.zhou" <ziqi.zhou@ansys.com>
Date: Wed, 16 Apr 2025 11:31:39 +0200
Subject: [PATCH] refactor: add const to s

---
 RoadLogicSuite/Internal/Utils/converter_utils_test.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/RoadLogicSuite/Internal/Utils/converter_utils_test.cpp b/RoadLogicSuite/Internal/Utils/converter_utils_test.cpp
index 431aaec..dcc8c97 100644
--- a/RoadLogicSuite/Internal/Utils/converter_utils_test.cpp
+++ b/RoadLogicSuite/Internal/Utils/converter_utils_test.cpp
@@ -29,7 +29,7 @@ road_logic_suite::types::LaneSection CreateSectionWithSingleRightLaneWithConstan
     road_logic_suite::types::LaneSection section{};
     road_logic_suite::types::Lane right_lane{};
     road_logic_suite::types::Poly3 constant_width(4, 0, 0, 0);
-    auto s0{0.0_m};
+    const auto s0{0.0_m};
     right_lane.width_polys.Insert(s0, constant_width);
     right_lane.id = -1;
     section.right_lanes.push_back(right_lane);
@@ -39,7 +39,7 @@ road_logic_suite::types::LaneSection CreateSectionWithSingleRightLaneWithConstan
 TEST(ConverterUtilsTest,
      GivenALaneSectionWithASingleRightLane_WhenGettingTheBoundaryOffsetForThatLane_ThenTheReturnedOffsetShouldBeCorrect)
 {
-    auto s{0.0_m};
+    const auto s{0.0_m};
     const auto section = CreateSectionWithSingleRightLaneWithConstantWidth();
     const auto lane_id = -1;
 
@@ -51,7 +51,7 @@ TEST(ConverterUtilsTest,
 TEST(ConverterUtilsTest,
      GivenALaneSectionWithASingleRightLane_WhenGettingTheLaneCenterOffset_ThenTheReturnedOffsetShouldBeCorrect)
 {
-    auto s{0.0_m};
+    const auto s{0.0_m};
     const auto section = CreateSectionWithSingleRightLaneWithConstantWidth();
     const auto lane_id = -1;
 
-- 
GitLab