Skip to content

Commit

Permalink
style: ament_cpplint and ament_uncrustify
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed Nov 19, 2024
1 parent 59203df commit 9f78ca4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions rmw_zenoh_cpp/src/detail/rmw_client_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ bool ClientData::init(const z_loaned_session_t * session)
[this]() {
z_drop(z_move(this->token_));
});
if(zc_liveliness_declare_token(
session,
&this->token_,
z_loan(liveliness_ke),
NULL
if (zc_liveliness_declare_token(
session,
&this->token_,
z_loan(liveliness_ke),
NULL
) != Z_OK)
{
RMW_ZENOH_LOG_ERROR_NAMED(
Expand Down
6 changes: 3 additions & 3 deletions rmw_zenoh_cpp/src/detail/rmw_context_impl_s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ class rmw_context_impl_s::Data final
// Initialize the shm manager if shared_memory is enabled in the config.
shm_provider_ = std::nullopt;
if (strncmp(
z_string_data(z_loan(shm_enabled)),
"true",
z_string_len(z_loan(shm_enabled))) == 0)
z_string_data(z_loan(shm_enabled)),
"true",
z_string_len(z_loan(shm_enabled))) == 0)
{
// TODO(yuyuan): determine the default alignment of SHM
z_alloc_alignment_t alignment = {5};
Expand Down

0 comments on commit 9f78ca4

Please sign in to comment.