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:
parent
c9c4253c84
commit
40e8b01cac
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ public:
|
||||||
get_subscription_handle();
|
get_subscription_handle();
|
||||||
|
|
||||||
RCLCPP_PUBLIC
|
RCLCPP_PUBLIC
|
||||||
const std::shared_ptr<rcl_subscription_t>
|
std::shared_ptr<const rcl_subscription_t>
|
||||||
get_subscription_handle() const;
|
get_subscription_handle() const;
|
||||||
|
|
||||||
/// Get all the QoS event handlers associated with this subscription.
|
/// Get all the QoS event handlers associated with this subscription.
|
||||||
|
|
|
@ -109,7 +109,7 @@ SubscriptionBase::get_subscription_handle()
|
||||||
return subscription_handle_;
|
return subscription_handle_;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::shared_ptr<rcl_subscription_t>
|
std::shared_ptr<const rcl_subscription_t>
|
||||||
SubscriptionBase::get_subscription_handle() const
|
SubscriptionBase::get_subscription_handle() const
|
||||||
{
|
{
|
||||||
return subscription_handle_;
|
return subscription_handle_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue