Skip to content

Commit

Permalink
Fix lint and build warnings and API inconsistency
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <[email protected]>
  • Loading branch information
Emerson Knapp committed Mar 21, 2019
1 parent 787fa6f commit 71ba5f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rclcpp/include/rclcpp/publisher_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class PublisherOptions
*/
RCLCPP_PUBLIC
PublisherOptions &
publisher_qos_profile(const rmw_qos_profile_t & publisher_qos_profile)
qos_profile(const rmw_qos_profile_t & publisher_qos_profile)
{
publisher_qos_profile_ = publisher_qos_profile;
return *this;
Expand Down Expand Up @@ -188,6 +188,7 @@ class PublisherOptions
allocator(std::shared_ptr<Alloc> allocator)
{
allocator_ = allocator;
return *this;
}

private:
Expand Down
2 changes: 2 additions & 0 deletions rclcpp/include/rclcpp/subscription_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ class SubscriptionOptions
return *this;
}


RCLCPP_PUBLIC
const SubscriptionEventCallbacks &
event_callbacks() const
Expand Down Expand Up @@ -196,6 +197,7 @@ class SubscriptionOptions
allocator(std::shared_ptr<Alloc> allocator)
{
allocator_ = allocator;
return *this;
}

private:
Expand Down

0 comments on commit 71ba5f3

Please sign in to comment.