mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 13:07:34 +08:00
Make the destructor of EstimatorInterface virtual
* This is a sane choice (and should arguably always be done for classes with virtual methods to avoid undefined behavior) * It is required for wrapping the EstimatorInterface with SWIG (without virtual destructor, deriving from the EstimatorInterface leads to -Werror=delete-non-virtual-dtor).
This commit is contained in:
@@ -52,7 +52,7 @@ class EstimatorInterface
|
||||
|
||||
public:
|
||||
EstimatorInterface() = default;
|
||||
~EstimatorInterface() = default;
|
||||
virtual ~EstimatorInterface() = default;
|
||||
|
||||
virtual bool init(uint64_t timestamp) = 0;
|
||||
virtual bool update() = 0;
|
||||
|
||||
Reference in New Issue
Block a user