Skip to content

Commit

Permalink
Virtual destructors (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquelinekay committed Apr 25, 2016
1 parent e961189 commit 6adfb91
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ClientBase
const std::string & service_name);

RCLCPP_PUBLIC
~ClientBase();
virtual ~ClientBase();

RCLCPP_PUBLIC
const std::string &
Expand Down
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Node
bool use_intra_process_comms = false);

RCLCPP_PUBLIC
~Node();
virtual ~Node();

/// Get the name of the node.
// \return The name of the node.
Expand Down
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/publisher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PublisherBase
size_t queue_size);

RCLCPP_PUBLIC
~PublisherBase();
virtual ~PublisherBase();

/// Get the topic that this publisher publishes on.
// \return The topic name.
Expand Down
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/service.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ServiceBase
const std::string service_name);

RCLCPP_PUBLIC
~ServiceBase();
virtual ~ServiceBase();

RCLCPP_PUBLIC
std::string
Expand Down

0 comments on commit 6adfb91

Please sign in to comment.