From 21201b881625a75c2841d96cca17f8288ab918be Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 5 Jul 2018 11:27:51 +1000 Subject: [PATCH] AP_WheelEncoder: do not permit copies --- libraries/AP_WheelEncoder/AP_WheelEncoder.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_WheelEncoder/AP_WheelEncoder.h b/libraries/AP_WheelEncoder/AP_WheelEncoder.h index 0cd510916a..96150342c9 100644 --- a/libraries/AP_WheelEncoder/AP_WheelEncoder.h +++ b/libraries/AP_WheelEncoder/AP_WheelEncoder.h @@ -34,6 +34,10 @@ public: AP_WheelEncoder(void); + /* Do not allow copies */ + AP_WheelEncoder(const AP_WheelEncoder &other) = delete; + AP_WheelEncoder &operator=(const AP_WheelEncoder&) = delete; + // WheelEncoder driver types enum WheelEncoder_Type { WheelEncoder_TYPE_NONE = 0,