From 9c7f45f7c707209c24a6f82876ae56a5378ebab3 Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Wed, 27 Nov 2024 20:17:02 +0900 Subject: [PATCH] fix(bag_time_manager_rviz_plugin): fix clang-diagnostic-unused-lambda-capture (#9444) Signed-off-by: veqcc --- .../src/bag_time_manager_panel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/bag_time_manager_rviz_plugin/src/bag_time_manager_panel.cpp b/common/bag_time_manager_rviz_plugin/src/bag_time_manager_panel.cpp index 79da89bd9e981..ef52977cb7e73 100644 --- a/common/bag_time_manager_rviz_plugin/src/bag_time_manager_panel.cpp +++ b/common/bag_time_manager_rviz_plugin/src/bag_time_manager_panel.cpp @@ -82,7 +82,7 @@ void BagTimeManagerPanel::onPauseClicked() pause_button_->setStyleSheet("background-color: #00FF00;"); auto req = std::make_shared(); client_resume_->async_send_request( - req, [this]([[maybe_unused]] rclcpp::Client::SharedFuture result) {}); + req, []([[maybe_unused]] rclcpp::Client::SharedFuture result) {}); } else { // do pause current_state_ = STATE::PAUSE; @@ -91,7 +91,7 @@ void BagTimeManagerPanel::onPauseClicked() pause_button_->setStyleSheet("background-color: #FF0000;"); auto req = std::make_shared(); client_pause_->async_send_request( - req, [this]([[maybe_unused]] rclcpp::Client::SharedFuture result) {}); + req, []([[maybe_unused]] rclcpp::Client::SharedFuture result) {}); } }