SubscriptionBase::get_subscription_handle() const should return a shared pointer to const value (#1140)

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
Ivan Santiago Paunovic 2020-05-28 16:48:20 -03:00 committed by GitHub
parent c9c4253c84
commit 40e8b01cac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ public:
get_subscription_handle();
RCLCPP_PUBLIC
const std::shared_ptr<rcl_subscription_t>
std::shared_ptr<const rcl_subscription_t>
get_subscription_handle() const;
/// Get all the QoS event handlers associated with this subscription.

View file

@ -109,7 +109,7 @@ SubscriptionBase::get_subscription_handle()
return subscription_handle_;
}
const std::shared_ptr<rcl_subscription_t>
std::shared_ptr<const rcl_subscription_t>
SubscriptionBase::get_subscription_handle() const
{
return subscription_handle_;