Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Passerino <[email protected]>
  • Loading branch information
Mauro Passerino committed Jun 30, 2022
1 parent 03cbb31 commit 5fa84f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
#ifndef RMW_FASTRTPS_SHARED_CPP__CUSTOM_EVENT_INFO_HPP_
#define RMW_FASTRTPS_SHARED_CPP__CUSTOM_EVENT_INFO_HPP_

#include <algorithm>
#include <atomic>
#include <condition_variable>
#include <limits>
#include <list>
#include <memory>
#include <mutex>
Expand Down Expand Up @@ -106,7 +108,7 @@ class EventTypeCallback
public:
EventTypeCallback() = default;

EventTypeCallback(size_t depth)
explicit EventTypeCallback(size_t depth)
{
history_depth_ = (depth > 0) ? depth : std::numeric_limits<size_t>::max();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#define RMW_FASTRTPS_SHARED_CPP__CUSTOM_SUBSCRIBER_INFO_HPP_

#include <atomic>
#include <algorithm>
#include <condition_variable>
#include <limits>
#include <memory>
Expand Down
3 changes: 1 addition & 2 deletions rmw_fastrtps_shared_cpp/src/custom_publisher_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ rmw_ret_t PubListener::set_on_new_event_callback(
const void * user_data,
rmw_event_callback_t callback)
{
switch (event_type)
{
switch (event_type) {
case RMW_EVENT_LIVELINESS_LOST:
on_liveliness_lost_.set_callback(user_data, callback);
break;
Expand Down
3 changes: 1 addition & 2 deletions rmw_fastrtps_shared_cpp/src/custom_subscriber_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ rmw_ret_t SubListener::set_on_new_event_callback(
const void * user_data,
rmw_event_callback_t callback)
{
switch (event_type)
{
switch (event_type) {
case RMW_EVENT_MESSAGE_LOST:
on_sample_lost_.set_callback(user_data, callback);
break;
Expand Down

0 comments on commit 5fa84f5

Please sign in to comment.