summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-09-26 18:52:05 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-01-12 12:49:20 +0200
commit439cfe7fbd1b854db63900225e526f9a3a4ac08d (patch)
tree593acdebf1e183b04ee15a2e6d8c11422df89e41
parent89227a428a82e724548399d35c98ea89566f9045 (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/ipa/libipa/camera_sensor_helper.h2
1 files changed, 1 insertions, 1 deletions
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<CameraSensorHelper> createInstance() const
+ std::unique_ptr<CameraSensorHelper> createInstance() const override
{
return std::make_unique<_Helper>();
}