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:
parent
e597598abf
commit
a29b7fc7d5
1 changed files with 2 additions and 2 deletions
|
@ -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); \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue