From 7992a21f6fe51f6896766261399ce896afe3949d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 14 Apr 2017 06:40:41 +1000 Subject: [PATCH] AP_IRLock: added override keyword --- libraries/AP_IRLock/AP_IRLock_I2C.h | 2 +- libraries/AP_IRLock/AP_IRLock_SITL.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_IRLock/AP_IRLock_I2C.h b/libraries/AP_IRLock/AP_IRLock_I2C.h index 1262eaefc1..862274beb3 100644 --- a/libraries/AP_IRLock/AP_IRLock_I2C.h +++ b/libraries/AP_IRLock/AP_IRLock_I2C.h @@ -13,7 +13,7 @@ public: void init(int8_t bus) override; // retrieve latest sensor data - returns true if new data is available - bool update(); + bool update() override; private: AP_HAL::OwnPtr dev; diff --git a/libraries/AP_IRLock/AP_IRLock_SITL.h b/libraries/AP_IRLock/AP_IRLock_SITL.h index 9f59c99a79..caac3d64bd 100644 --- a/libraries/AP_IRLock/AP_IRLock_SITL.h +++ b/libraries/AP_IRLock/AP_IRLock_SITL.h @@ -16,10 +16,10 @@ public: AP_IRLock_SITL(); // init - initialize sensor library - virtual void init(int8_t bus); + void init(int8_t bus) override; // retrieve latest sensor data - returns true if new data is available - virtual bool update(); + bool update() override; private: