Skip to content

Commit

Permalink
move unique ptr instead of copying it
Browse files Browse the repository at this point in the history
  • Loading branch information
SamerKhshiboun committed Sep 2, 2024
1 parent 911c77b commit 911c9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realsense2_camera/src/image_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ image_transport_publisher::image_transport_publisher( rclcpp::Node & node,
}
void image_transport_publisher::publish( sensor_msgs::msg::Image::UniquePtr image_ptr )
{
image_publisher_impl->publish( *image_ptr );
image_publisher_impl->publish( std::move( image_ptr ) );
}

size_t image_transport_publisher::get_subscription_count() const
Expand Down

0 comments on commit 911c9fd

Please sign in to comment.