Skip to content

Commit

Permalink
Shorten the length of a lambda. (#106)
Browse files Browse the repository at this point in the history
This should make it compatible with both uncrustify 0.72
and uncrustify 0.78.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
  • Loading branch information
clalancette authored Feb 27, 2024
1 parent 75fb7b6 commit e3bcd9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/interactive_markers/test_interactive_marker_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,8 @@ TEST_F(TestInteractiveMarkerServerWithMarkers, feedback_communication)

// Register a callback function to capture output
visualization_msgs::msg::InteractiveMarkerFeedback output_feedback;
auto callback =
[&output_feedback]
(interactive_markers::InteractiveMarkerServer::FeedbackConstSharedPtr feedback)
using Server = interactive_markers::InteractiveMarkerServer;
auto callback = [&output_feedback](Server::FeedbackConstSharedPtr feedback)
{
output_feedback = *feedback;
};
Expand Down

0 comments on commit e3bcd9e

Please sign in to comment.