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>
This commit is contained in:
Laurent Pinchart 2019-01-23 23:02:55 +02:00
parent e597598abf
commit a29b7fc7d5

View file

@ -46,11 +46,11 @@ private:
}; };
#define REGISTER_PIPELINE_HANDLER(handler) \ #define REGISTER_PIPELINE_HANDLER(handler) \
class handler##Factory : public PipelineHandlerFactory \ class handler##Factory final : public PipelineHandlerFactory \
{ \ { \
public: \ public: \
handler##Factory() : PipelineHandlerFactory(#handler) {} \ handler##Factory() : PipelineHandlerFactory(#handler) {} \
PipelineHandler *create(CameraManager *manager) final \ PipelineHandler *create(CameraManager *manager) \
{ \ { \
return new handler(manager); \ return new handler(manager); \
} \ } \