@@ -38,7 +38,9 @@ class Executor
3838public:
3939 RCLCPP_MAKE_SHARED_DEFINITIONS (Executor);
4040
41- Executor () : interrupt_guard_condition_(rmw_create_guard_condition()) {}
41+ Executor ()
42+ : interrupt_guard_condition_(rmw_create_guard_condition())
43+ {}
4244
4345 virtual ~Executor ()
4446 {
@@ -58,8 +60,7 @@ class Executor
5860 auto node = weak_node.lock ();
5961 if (node == node_ptr) {
6062 // TODO: Use a different error here?
61- throw std::runtime_error (
62- " Cannot add node to executor, node already added." );
63+ throw std::runtime_error (" Cannot add node to executor, node already added." );
6364 }
6465 }
6566 weak_nodes_.push_back (node_ptr);
@@ -100,7 +101,9 @@ class Executor
100101protected:
101102 struct AnyExecutable
102103 {
103- AnyExecutable () : subscription(0 ), timer(0 ), callback_group(0 ), node(0 ) {}
104+ AnyExecutable ()
105+ : subscription(0 ), timer(0 ), callback_group(0 ), node(0 )
106+ {}
104107 // Either the subscription or the timer will be set, but not both
105108 rclcpp::subscription::SubscriptionBase::SharedPtr subscription;
106109 rclcpp::timer::TimerBase::SharedPtr timer;
@@ -313,8 +316,7 @@ class Executor
313316 std::malloc (sizeof (void *) * number_of_guard_conds));
314317 if (guard_condition_handles.guard_conditions == NULL ) {
315318 // TODO(wjwwood): Use a different error here? maybe std::bad_alloc?
316- throw std::runtime_error (
317- " Could not malloc for guard condition pointers." );
319+ throw std::runtime_error (" Could not malloc for guard condition pointers." );
318320 }
319321 // Put the global ctrl-c guard condition in
320322 assert (guard_condition_handles.guard_condition_count > 1 );
0 commit comments