Skip to content

Commit 3e1b842

Browse files
homalozoact2034
andauthored
fix: replace deprecated MessageUniquePtr (#400)
* fix: replace deprecated MessageUniquePtr Signed-off-by: homalozoa <nx.tardis@gmail.com> * lint: reformat code Signed-off-by: homalozoa <nx.tardis@gmail.com> --------- Signed-off-by: homalozoa <nx.tardis@gmail.com> Co-authored-by: Christian Henkel <christian.henkel2@de.bosch.com>
1 parent f26af6c commit 3e1b842

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

diagnostic_updater/include/diagnostic_updater/publisher.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ class DiagnosedPublisher : public TopicDiagnostic
242242
* The timestamp to be used by the TimeStampStatus class will be
243243
* extracted from message.header.stamp.
244244
*/
245-
virtual void publish(typename PublisherT::MessageUniquePtr message)
245+
virtual void publish(
246+
std::unique_ptr<typename PublisherT::ROSMessageType,
247+
typename PublisherT::ROSMessageTypeDeleter> message)
246248
{
247249
tick(message->header.stamp);
248250
publisher_->publish(std::move(message));

0 commit comments

Comments
 (0)