From 668429b7da66f512c912dc50faaa731b5c7946da Mon Sep 17 00:00:00 2001 From: Max Schwarz Date: Mon, 19 Feb 2024 15:45:57 +0100 Subject: [PATCH] further coding style fixes --- rosbag_fancy/src/cmd_play.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rosbag_fancy/src/cmd_play.cpp b/rosbag_fancy/src/cmd_play.cpp index 9e8056f..789348a 100644 --- a/rosbag_fancy/src/cmd_play.cpp +++ b/rosbag_fancy/src/cmd_play.cpp @@ -285,8 +285,8 @@ int play(const std::vector& options) ros::SteadyTime::sleepUntil(wallStamp); currentTime = msg.stamp; - if(ui) - ui->setPositionInBag(msg.stamp); + if(ui) + ui->setPositionInBag(msg.stamp); bags[it->bagIndex].publishers[msg.connection->id].publish(msg); @@ -310,9 +310,9 @@ int play(const std::vector& options) ros::spinOnce(); - // Handle key input if(ui) { + // Handle key input fd_set fds{}; FD_ZERO(&fds); FD_SET(STDIN_FILENO, &fds); @@ -325,9 +325,9 @@ int play(const std::vector& options) } else if(ret != 0) ui->handleInput(); - ui->setPaused(paused); - } + ui->setPaused(paused); + } } return 0;