libcamera: pipeline: rkisp1: Avoid usage of dynamic_cast<>
The logic of the code guarantees that the PipelineHandler pointer passed to the RkISP1Frames constructor is an instance of PipelineHandlerRkISP1. We can thus use static_cast<> instead of dynamic_cast<>. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -221,7 +221,7 @@ private:
|
||||
};
|
||||
|
||||
RkISP1Frames::RkISP1Frames(PipelineHandler *pipe)
|
||||
: pipe_(dynamic_cast<PipelineHandlerRkISP1 *>(pipe))
|
||||
: pipe_(static_cast<PipelineHandlerRkISP1 *>(pipe))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user