Skip to content

Commit

Permalink
Fixed formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanFabian committed Aug 16, 2024
1 parent 3566276 commit 28e13db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/image_transport_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class ImageTransportManager::Subscription final : public QObject

{
std::lock_guard image_lock( image_mutex_ );
if (last_image_ != nullptr ) {
if ( last_image_ != nullptr ) {
if ( rclcpp::Time( last_image_->header.stamp ).nanoseconds() == 0 )
camera_base_interval_ = static_cast<int>(
( received_stamp - last_received_stamp_ ).nanoseconds() / ( 1000 * 1000 ) );
Expand Down
4 changes: 2 additions & 2 deletions src/ros2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ void Ros2Qml::init( const QString &name, const QStringList &argv, quint32 )
}
// std::this_thread::sleep_for(std::chrono::seconds(10));
int argc = argv.size();
std::vector<const char *> p_args(argc);
std::vector<std::string> args(argc);
std::vector<const char *> p_args( argc );
std::vector<std::string> args( argc );
for ( int i = 0; i < argv.size(); ++i ) {
args[i] = argv[i].toStdString();
p_args[i] = args[i].c_str();
Expand Down
2 changes: 1 addition & 1 deletion test/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ QtObject {
}
)",
QUrl() );
auto obj = std::unique_ptr<QObject>(component.create());
auto obj = std::unique_ptr<QObject>( component.create() );
path = ament_index_cpp::get_package_share_directory( "qml_ros2_plugin" ) +
"/test/test_io/qobject.yaml";
ASSERT_TRUE( io.writeYaml( QString::fromStdString( path ), QVariant::fromValue( obj.get() ) ) );
Expand Down

0 comments on commit 28e13db

Please sign in to comment.