From 6c2e48465c8ce3896525959c403976b503dcb03f Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Sat, 22 Jun 2024 23:54:21 +0900 Subject: [PATCH] fix(pointcloud_preprocessor): fix constVariableReference warnings (#7628) Signed-off-by: Ryuta Kambe --- .../src/concatenate_data/concatenate_and_time_sync_nodelet.cpp | 2 +- .../src/concatenate_data/concatenate_pointclouds.cpp | 2 +- .../src/time_synchronizer/time_synchronizer_nodelet.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sensing/pointcloud_preprocessor/src/concatenate_data/concatenate_and_time_sync_nodelet.cpp b/sensing/pointcloud_preprocessor/src/concatenate_data/concatenate_and_time_sync_nodelet.cpp index e998a79b27f77..4fd28e02cc74f 100644 --- a/sensing/pointcloud_preprocessor/src/concatenate_data/concatenate_and_time_sync_nodelet.cpp +++ b/sensing/pointcloud_preprocessor/src/concatenate_data/concatenate_and_time_sync_nodelet.cpp @@ -149,7 +149,7 @@ PointCloudConcatenateDataSynchronizerComponent::PointCloudConcatenateDataSynchro { RCLCPP_DEBUG_STREAM( get_logger(), "Subscribing to " << input_topics_.size() << " user given topics as inputs:"); - for (auto & input_topic : input_topics_) { + for (const auto & input_topic : input_topics_) { RCLCPP_DEBUG_STREAM(get_logger(), " - " << input_topic); } diff --git a/sensing/pointcloud_preprocessor/src/concatenate_data/concatenate_pointclouds.cpp b/sensing/pointcloud_preprocessor/src/concatenate_data/concatenate_pointclouds.cpp index 3586b7c999776..29f0bf61a1ab7 100644 --- a/sensing/pointcloud_preprocessor/src/concatenate_data/concatenate_pointclouds.cpp +++ b/sensing/pointcloud_preprocessor/src/concatenate_data/concatenate_pointclouds.cpp @@ -105,7 +105,7 @@ PointCloudConcatenationComponent::PointCloudConcatenationComponent( { RCLCPP_INFO_STREAM( get_logger(), "Subscribing to " << input_topics_.size() << " user given topics as inputs:"); - for (auto & input_topic : input_topics_) { + for (const auto & input_topic : input_topics_) { RCLCPP_INFO_STREAM(get_logger(), " - " << input_topic); } diff --git a/sensing/pointcloud_preprocessor/src/time_synchronizer/time_synchronizer_nodelet.cpp b/sensing/pointcloud_preprocessor/src/time_synchronizer/time_synchronizer_nodelet.cpp index 099e5757ffc0a..890dcdb974cf3 100644 --- a/sensing/pointcloud_preprocessor/src/time_synchronizer/time_synchronizer_nodelet.cpp +++ b/sensing/pointcloud_preprocessor/src/time_synchronizer/time_synchronizer_nodelet.cpp @@ -118,7 +118,7 @@ PointCloudDataSynchronizerComponent::PointCloudDataSynchronizerComponent( { RCLCPP_INFO_STREAM( get_logger(), "Subscribing to " << input_topics_.size() << " user given topics as inputs:"); - for (auto & input_topic : input_topics_) { + for (const auto & input_topic : input_topics_) { RCLCPP_INFO_STREAM(get_logger(), " - " << input_topic); }