more const references
This commit is contained in:
parent
b62ab6a8c4
commit
d17ef2ca9c
2 changed files with 5 additions and 5 deletions
|
@ -64,12 +64,12 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
std::string get_service_name()
|
||||
const std::string & get_service_name() const
|
||||
{
|
||||
return this->service_name_;
|
||||
}
|
||||
|
||||
const rmw_client_t * get_client_handle()
|
||||
const rmw_client_t * get_client_handle() const
|
||||
{
|
||||
return this->client_handle_;
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
SubscriptionBase(
|
||||
std::shared_ptr<rmw_node_t> node_handle,
|
||||
rmw_subscription_t * subscription_handle,
|
||||
std::string & topic_name,
|
||||
const std::string & topic_name,
|
||||
bool ignore_local_publications)
|
||||
: node_handle_(node_handle),
|
||||
subscription_handle_(subscription_handle),
|
||||
|
@ -71,7 +71,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
std::string get_topic_name()
|
||||
const std::string & get_topic_name() const
|
||||
{
|
||||
return this->topic_name_;
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public:
|
|||
Subscription(
|
||||
std::shared_ptr<rmw_node_t> node_handle,
|
||||
rmw_subscription_t * subscription_handle,
|
||||
std::string & topic_name,
|
||||
const std::string & topic_name,
|
||||
bool ignore_local_publications,
|
||||
CallbackType callback)
|
||||
: SubscriptionBase(node_handle, subscription_handle, topic_name, ignore_local_publications),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue