summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-06-08 05:30:20 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-06-10 16:48:18 +0300
commit33d71af84e64d28be278234bf5a152aee67c9013 (patch)
treea8ad2d5fbc875807567fa6703d35907f3225705a /src
parent7a88b212e0107299b277dae8657476bc8d5d2b0f (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index 900f873a..f3e2f30c 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -221,7 +221,7 @@ private:
};
RkISP1Frames::RkISP1Frames(PipelineHandler *pipe)
- : pipe_(dynamic_cast<PipelineHandlerRkISP1 *>(pipe))
+ : pipe_(static_cast<PipelineHandlerRkISP1 *>(pipe))
{
}