mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -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:
|
public:
|
||||||
AP_InertialSensor_Backend(AP_InertialSensor &imu);
|
AP_InertialSensor_Backend(AP_InertialSensor &imu);
|
||||||
|
AP_InertialSensor_Backend(const AP_InertialSensor_Backend &that) = delete;
|
||||||
|
|
||||||
// we declare a virtual destructor so that drivers can
|
// we declare a virtual destructor so that drivers can
|
||||||
// override with a custom destructor if need be.
|
// override with a custom destructor if need be.
|
||||||
|
Loading…
Reference in New Issue
Block a user