Skip to content

Commit

Permalink
fix(autoware_traffic_light_visualization): fix passedByValue (#8241)
Browse files Browse the repository at this point in the history
fix:passedByValue

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 committed Aug 5, 2024
1 parent b1e84ca commit 3d17d84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace
}

bool isAttributeValue(
const lanelet::ConstPoint3d p, const std::string attr_str, const std::string value_str)
const lanelet::ConstPoint3d p, const std::string & attr_str, const std::string & value_str)
{
lanelet::Attribute attr = p.attribute(attr_str);
if (attr.value().compare(value_str) == 0) {
Expand All @@ -49,7 +49,7 @@ bool isAttributeValue(

void lightAsMarker(
const rclcpp::node_interfaces::NodeLoggingInterface::SharedPtr & node_logging,
lanelet::ConstPoint3d p, visualization_msgs::msg::Marker * marker, const std::string ns,
lanelet::ConstPoint3d p, visualization_msgs::msg::Marker * marker, const std::string & ns,
const rclcpp::Time & current_time)
{
if (marker == nullptr) {
Expand Down

0 comments on commit 3d17d84

Please sign in to comment.