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:
Laurent Pinchart 2020-06-08 05:30:20 +03:00
parent 7a88b212e0
commit 33d71af84e

View file

@ -221,7 +221,7 @@ private:
};
RkISP1Frames::RkISP1Frames(PipelineHandler *pipe)
: pipe_(dynamic_cast<PipelineHandlerRkISP1 *>(pipe))
: pipe_(static_cast<PipelineHandlerRkISP1 *>(pipe))
{
}