From 40e8b01cac1b072646d13c32c432e6cf1b8bae7d Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Thu, 28 May 2020 16:48:20 -0300 Subject: [PATCH] `SubscriptionBase::get_subscription_handle() const` should return a shared pointer to const value (#1140) Signed-off-by: Ivan Santiago Paunovic --- rclcpp/include/rclcpp/subscription_base.hpp | 2 +- rclcpp/src/rclcpp/subscription_base.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rclcpp/include/rclcpp/subscription_base.hpp b/rclcpp/include/rclcpp/subscription_base.hpp index cb560d6..68df921 100644 --- a/rclcpp/include/rclcpp/subscription_base.hpp +++ b/rclcpp/include/rclcpp/subscription_base.hpp @@ -91,7 +91,7 @@ public: get_subscription_handle(); RCLCPP_PUBLIC - const std::shared_ptr + std::shared_ptr get_subscription_handle() const; /// Get all the QoS event handlers associated with this subscription. diff --git a/rclcpp/src/rclcpp/subscription_base.cpp b/rclcpp/src/rclcpp/subscription_base.cpp index dc8c559..3772603 100644 --- a/rclcpp/src/rclcpp/subscription_base.cpp +++ b/rclcpp/src/rclcpp/subscription_base.cpp @@ -109,7 +109,7 @@ SubscriptionBase::get_subscription_handle() return subscription_handle_; } -const std::shared_ptr +std::shared_ptr SubscriptionBase::get_subscription_handle() const { return subscription_handle_;