From 439cfe7fbd1b854db63900225e526f9a3a4ac08d Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 26 Sep 2023 18:52:05 +0300 Subject: libipa: camera_sensor_helper: Mark createInstance() with override The CameraSensorHelperFactory::createInstance() function overrides a virtual function from CameraSensorHelperFactoryBase. The function declaration doesn't mark it with the override keyword. This could cause issues in the future if the base class' function changes, as the compiler will not issue any warning in that case. Fix it. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/ipa/libipa/camera_sensor_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipa/libipa/camera_sensor_helper.h b/src/ipa/libipa/camera_sensor_helper.h index 3ea1806c..1ca9371b 100644 --- a/src/ipa/libipa/camera_sensor_helper.h +++ b/src/ipa/libipa/camera_sensor_helper.h @@ -88,7 +88,7 @@ public: } private: - std::unique_ptr createInstance() const + std::unique_ptr createInstance() const override { return std::make_unique<_Helper>(); } -- cgit v1.2.1