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) {}); } }