Skip to content

Commit b00e8e9

Browse files
bathteayokobayu858
and
kobayu858
authored
fix(autoware_perception_rviz_plugin): fix passedByValue (#8192)
* fix: passedByValue Signed-off-by: bathteayo <105347690+bathteayo@users.noreply.github.com> * fix:passedByValue Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> --------- Signed-off-by: bathteayo <105347690+bathteayo@users.noreply.github.com> Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> Co-authored-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 2e7eb3e commit b00e8e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/autoware_perception_rviz_plugin/include/autoware_perception_rviz_plugin/object_detection/object_polygon_detail.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ get_2d_shape_marker_ptr(
104104
AUTOWARE_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
105105
get_label_marker_ptr(
106106
const geometry_msgs::msg::Point & centroid, const geometry_msgs::msg::Quaternion & orientation,
107-
const std::string label, const std_msgs::msg::ColorRGBA & color_rgba);
107+
const std::string & label, const std_msgs::msg::ColorRGBA & color_rgba);
108108

109109
AUTOWARE_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
110110
get_existence_probability_marker_ptr(

common/autoware_perception_rviz_plugin/src/object_detection/object_polygon_detail.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ visualization_msgs::msg::Marker::SharedPtr get_uuid_marker_ptr(
459459

460460
visualization_msgs::msg::Marker::SharedPtr get_label_marker_ptr(
461461
const geometry_msgs::msg::Point & centroid, const geometry_msgs::msg::Quaternion & orientation,
462-
const std::string label, const std_msgs::msg::ColorRGBA & color_rgba)
462+
const std::string & label, const std_msgs::msg::ColorRGBA & color_rgba)
463463
{
464464
auto marker_ptr = std::make_shared<Marker>();
465465
marker_ptr->type = visualization_msgs::msg::Marker::TEXT_VIEW_FACING;

0 commit comments

Comments
 (0)