[libcamera-devel] [PATCH] libcamera: geometry: Set steps to 0 in default SizeRange constructor
Umang Jain
email at uajain.com
Tue May 19 10:36:24 CEST 2020
Hi Laurent,
On Tue, 2020-05-19 at 06:04 +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>
> ---
> 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)
> {
> }
>
This makes sense.
Reviewed-by: Umang Jain <email at uajain.com>
More information about the libcamera-devel
mailing list