Skip to content

Commit

Permalink
fix: replace deprecated MessageUniquePtr
Browse files Browse the repository at this point in the history
Signed-off-by: homalozoa <[email protected]>
  • Loading branch information
homalozoa committed Oct 24, 2024
1 parent bb392ee commit 1ec1f91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class DiagnosedPublisher : public TopicDiagnostic
* The timestamp to be used by the TimeStampStatus class will be
* extracted from message.header.stamp.
*/
virtual void publish(typename PublisherT::MessageUniquePtr message)
virtual void publish(std::unique_ptr<typename PublisherT::ROSMessageType, typename PublisherT::ROSMessageTypeDeleter> message)
{
tick(message->header.stamp);
publisher_->publish(std::move(message));
Expand Down

0 comments on commit 1ec1f91

Please sign in to comment.