Add missing virtual destructors (#1149)
* Add -Wnon-virtual-dtor -Woverloaded-virtual compiler options Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com> * Add missing virtual dtors Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com> * please linter Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
parent
819612aec6
commit
769a9d0439
8 changed files with 11 additions and 4 deletions
|
@ -36,6 +36,7 @@ namespace rclcpp_lifecycle
|
|||
class LifecyclePublisherInterface
|
||||
{
|
||||
public:
|
||||
virtual ~LifecyclePublisherInterface() {}
|
||||
virtual void on_activate() = 0;
|
||||
virtual void on_deactivate() = 0;
|
||||
virtual bool is_activated() = 0;
|
||||
|
|
|
@ -100,6 +100,10 @@ public:
|
|||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
virtual CallbackReturn
|
||||
on_error(const State & previous_state);
|
||||
|
||||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
virtual
|
||||
~LifecycleNodeInterface() {}
|
||||
};
|
||||
|
||||
} // namespace node_interfaces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue