Browse Source

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.
mission-4.1.18
Lucas De Marchi 10 years ago
parent
commit
d3e8e8fd43
  1. 1
      libraries/AP_InertialSensor/AP_InertialSensor_Backend.h

1
libraries/AP_InertialSensor/AP_InertialSensor_Backend.h

@ -30,6 +30,7 @@ class AP_InertialSensor_Backend @@ -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…
Cancel
Save