mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
AP_InertialSensor: disable backend's copy constructor
We never want to copy a backend. This protects us of accidentally using a copy instead of a reference for all subclasses.
This commit is contained in:
parent
a58bb0fc32
commit
d3e8e8fd43
@ -30,6 +30,7 @@ class AP_InertialSensor_Backend
|
||||
{
|
||||
public:
|
||||
AP_InertialSensor_Backend(AP_InertialSensor &imu);
|
||||
AP_InertialSensor_Backend(const AP_InertialSensor_Backend &that) = delete;
|
||||
|
||||
// we declare a virtual destructor so that drivers can
|
||||
// override with a custom destructor if need be.
|
||||
|
Loading…
Reference in New Issue
Block a user