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>
This commit is contained in:
@@ -88,7 +88,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
std::unique_ptr<CameraSensorHelper> createInstance() const
|
||||
std::unique_ptr<CameraSensorHelper> createInstance() const override
|
||||
{
|
||||
return std::make_unique<_Helper>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user