From c9d9333e0a06f8d0a8c4d432d888c451d2bed03e Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Tue, 30 Nov 2021 16:28:36 -0300 Subject: [PATCH] Fix deprecation warning Signed-off-by: Ivan Santiago Paunovic --- .../rosbag2_transport/test_record_all_ignore_leaf_topics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosbag2_transport/test/rosbag2_transport/test_record_all_ignore_leaf_topics.cpp b/rosbag2_transport/test/rosbag2_transport/test_record_all_ignore_leaf_topics.cpp index 2904295fa..977aacfe6 100644 --- a/rosbag2_transport/test/rosbag2_transport/test_record_all_ignore_leaf_topics.cpp +++ b/rosbag2_transport/test/rosbag2_transport/test_record_all_ignore_leaf_topics.cpp @@ -36,7 +36,7 @@ TEST_F(RecordIntegrationTestFixture, published_messages_from_two_topics_ignore_l { auto node = std::make_shared("test_string_msg_listener_node"); auto string_msgs_sub = node->create_subscription( - "/string_topic", 10, [](test_msgs::msg::Strings::SharedPtr) {}); + "/string_topic", 10, [](test_msgs::msg::Strings::ConstSharedPtr) {}); auto array_message = get_messages_arrays()[0]; array_message->float32_values = {{40.0f, 2.0f, 0.0f}};