summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-23 23:02:55 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-24 22:24:08 +0200
commita29b7fc7d5b3cca3738728961cb2f5c9600cc960 (patch)
treee317bfbf6554c4ed2e3ed1bb19384119a980b8fa
parente597598abf19e4e0372240f9819df559c62f97d2 (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>
-rw-r--r--src/libcamera/include/pipeline_handler.h4
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); \
} \