From b8ce65cd33bdf92b4e7ae99e5f7196ffcd30c575 Mon Sep 17 00:00:00 2001 From: yuanyuyuan Date: Thu, 28 Nov 2024 15:26:24 +0800 Subject: [PATCH] fix: correct the call by ref --- rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp b/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp index ed0a97fc..68c86c60 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp @@ -72,7 +72,7 @@ void sub_data_handler(z_loaned_sample_t * sample, void * data) slice, z_timestamp_ntp64_time(z_sample_timestamp(sample)), std::move(attachment)), - &topic_name); + topic_name); } } // namespace