summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-19 04:24:51 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-22 04:54:02 +0300
commit09eeec152086158e55870d8523b862b0731abdb5 (patch)
tree94d5b6342d58238f3e07ea2dcd5570f9dd73d8d4 /include
parente8cc0a26583ce6fa3d25fd10173a037f2c5e57c8 (diff)
libcamera: geometry: Set steps to 0 in default SizeRange constructor
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@ideasonboard.com> Reviewed-by: Umang Jain <email@uajain.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/geometry.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/geometry.h b/include/libcamera/geometry.h
index 2d364891..edda42cf 100644
--- a/include/libcamera/geometry.h
+++ b/include/libcamera/geometry.h
@@ -71,6 +71,7 @@ class SizeRange
{
public:
SizeRange()
+ : hStep(0), vStep(0)
{
}