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:
parent
7a88b212e0
commit
33d71af84e
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
RkISP1Frames::RkISP1Frames(PipelineHandler *pipe)
|
RkISP1Frames::RkISP1Frames(PipelineHandler *pipe)
|
||||||
: pipe_(dynamic_cast<PipelineHandlerRkISP1 *>(pipe))
|
: pipe_(static_cast<PipelineHandlerRkISP1 *>(pipe))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue