Skip to content

Commit

Permalink
make linters happy
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Nov 5, 2024
1 parent 925c3b1 commit 5430050
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions rmw_zenoh_cpp/src/detail/rmw_context_impl_s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,9 @@ rmw_ret_t rmw_context_impl_s::Data::subscribe_to_ros_graph()
auto sub_options = zc_liveliness_subscriber_options_null();
z_owned_closure_sample_t callback =
rmw_zenoh_cpp::make_z_closure<z_owned_closure_sample_t, const z_sample_t>(
static_cast<void *>(this),
rmw_context_impl_s::graph_sub_data_handler,
nullptr
);
static_cast<void *>(this),
rmw_context_impl_s::graph_sub_data_handler,
nullptr);
graph_subscriber_ = zc_liveliness_declare_subscriber(
z_loan(session_),
z_keyexpr(liveliness_str_.c_str()),
Expand Down
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/rmw_data_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class rmw_client_data_t final

///=============================================================================
template<typename T, typename H>
T make_z_closure(void * context, void (*call)(H *, void *), void (*drop)(void *))
T make_z_closure(void * context, void (* call)(H *, void *), void (* drop)(void *))
{
T closure;
closure.context = context;
Expand Down
3 changes: 1 addition & 2 deletions rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ bool SubscriptionData::init()
// in the closure callback once we switch to zenoh-cpp.
z_owned_closure_sample_t callback =
rmw_zenoh_cpp::make_z_closure<z_owned_closure_sample_t, const z_sample_t>(
static_cast<void *>(this), sub_data_handler, nullptr
);
static_cast<void *>(this), sub_data_handler, nullptr);
z_owned_keyexpr_t keyexpr =
z_keyexpr_new(entity_->topic_info()->topic_keyexpr_.c_str());
auto always_free_ros_keyexpr = rcpputils::make_scope_exit(
Expand Down

0 comments on commit 5430050

Please sign in to comment.