From 7d66a45b8d91994ed0b9db368282b0e1135bfb44 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 4 Jan 2020 04:45:25 +0200 Subject: libcamera: bound_method: Mark overriden methods with override MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mark the activate() and invoke() methods with the override keyword where appropriate. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- include/libcamera/bound_method.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/libcamera/bound_method.h b/include/libcamera/bound_method.h index 5743cacf..f23b17c7 100644 --- a/include/libcamera/bound_method.h +++ b/include/libcamera/bound_method.h @@ -107,7 +107,7 @@ public: bool match(void (T::*func)(Args...)) const { return func == func_; } - void activate(Args... args, bool deleteMethod = false) + void activate(Args... args, bool deleteMethod = false) override { if (this->object_) BoundMethodBase::activatePack(new PackType{ args... }, deleteMethod); @@ -115,7 +115,7 @@ public: (static_cast(this->obj_)->*func_)(args...); } - void invoke(Args... args) + void invoke(Args... args) override { (static_cast(this->obj_)->*func_)(args...); } @@ -136,12 +136,12 @@ public: bool match(void (*func)(Args...)) const { return func == func_; } - void activate(Args... args, bool deleteMethod = false) + void activate(Args... args, bool deleteMethod = false) override { (*func_)(args...); } - void invoke(Args...) {} + void invoke(Args...) override {} private: void (*func_)(Args...); -- cgit v1.2.1