From 1ec1f91dd268b97d84f9cd37cfd6fe15a4147709 Mon Sep 17 00:00:00 2001 From: homalozoa Date: Thu, 24 Oct 2024 23:46:22 +0800 Subject: [PATCH] fix: replace deprecated MessageUniquePtr Signed-off-by: homalozoa --- diagnostic_updater/include/diagnostic_updater/publisher.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diagnostic_updater/include/diagnostic_updater/publisher.hpp b/diagnostic_updater/include/diagnostic_updater/publisher.hpp index f2bdcb47..e2127667 100644 --- a/diagnostic_updater/include/diagnostic_updater/publisher.hpp +++ b/diagnostic_updater/include/diagnostic_updater/publisher.hpp @@ -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 message) { tick(message->header.stamp); publisher_->publish(std::move(message));