diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-01-23 23:02:55 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-01-24 22:24:08 +0200 |
commit | a29b7fc7d5b3cca3738728961cb2f5c9600cc960 (patch) | |
tree | e317bfbf6554c4ed2e3ed1bb19384119a980b8fa /src | |
parent | e597598abf19e4e0372240f9819df559c62f97d2 (diff) |
libcamera: pipeline_handler: Declare factory children classes as final
Nothing should inherit from the factory classes created by the
REGISTER_PIPELINE_HANDLER() macro. Declare them as final instead of only
declaring their create() method final.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/include/pipeline_handler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/include/pipeline_handler.h b/src/libcamera/include/pipeline_handler.h index 7bb07d1e..1da6dc75 100644 --- a/src/libcamera/include/pipeline_handler.h +++ b/src/libcamera/include/pipeline_handler.h @@ -46,11 +46,11 @@ private: }; #define REGISTER_PIPELINE_HANDLER(handler) \ -class handler##Factory : public PipelineHandlerFactory \ +class handler##Factory final : public PipelineHandlerFactory \ { \ public: \ handler##Factory() : PipelineHandlerFactory(#handler) {} \ - PipelineHandler *create(CameraManager *manager) final \ + PipelineHandler *create(CameraManager *manager) \ { \ return new handler(manager); \ } \ |