[libcamera-devel] [PATCH] libcamera: geometry: Set steps to 0 in default SizeRange constructor
Niklas Söderlund
niklas.soderlund at ragnatech.se
Tue May 19 16:06:05 CEST 2020
Hi Laurent,
Thanks for your work.
On 2020-05-19 06:04:45 +0300, Laurent Pinchart wrote:
> The default SizeRange constructor initializes the min and max members,
> but leaves the hStep and vStep members uninitialized. Fix it.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
> ---
> include/libcamera/geometry.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/libcamera/geometry.h b/include/libcamera/geometry.h
> index 2d364891858c..edda42cf34cc 100644
> --- a/include/libcamera/geometry.h
> +++ b/include/libcamera/geometry.h
> @@ -71,6 +71,7 @@ class SizeRange
> {
> public:
> SizeRange()
> + : hStep(0), vStep(0)
> {
> }
>
> --
> Regards,
>
> Laurent Pinchart
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
--
Regards,
Niklas Söderlund
More information about the libcamera-devel
mailing list