Skip to content

Commit

Permalink
Fix minor cpplint problems.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette committed Feb 7, 2024
1 parent 966a043 commit d088360
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/liveliness_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ std::optional<rmw_qos_profile_t> keyexpr_to_qos(const std::string & keyexpr)
// Get the history depth.
errno = 0;
char * endptr;
unsigned long num = strtoul(history_parts[1].c_str(), &endptr, 10);
size_t num = strtoul(history_parts[1].c_str(), &endptr, 10);
if (endptr == history_parts[1].c_str()) {
// No values were converted, this is an error
RMW_SET_ERROR_MSG("no valid numbers available");
Expand Down
1 change: 0 additions & 1 deletion rmw_zenoh_cpp/src/detail/rmw_data_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ void rmw_subscription_data_t::add_new_message(
z_drop(z_move(old->payload));
message_queue_.pop_front();
}

}

message_queue_.emplace_back(std::move(msg));
Expand Down
1 change: 0 additions & 1 deletion rmw_zenoh_cpp/src/rmw_qos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ rmw_qos_profile_check_compatible(
char * reason,
size_t reason_size)
{

// In Zenoh, publishers do not have any reliability settings.
// A publisher and subscription are only incompatible if the durability of the publisher is
// TRANSIENT_LOCAL but that of the subscription is not. In such a scenario, a late-joining
Expand Down

0 comments on commit d088360

Please sign in to comment.