From 0ed053245702d193b9c0ad7d8bda9e975ddfb6ed Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Wed, 23 Dec 2020 18:34:34 +0100 Subject: android: camera_device: Simplify properties.get() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When accessing the value of a property by reading the properties ControlList content with ControlList::get<>() it is not necessary to specify the template type as it is already conveyed by the Control instance provided as first argument. Reviewed-by: Paul Elder Reviewed-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- src/android/camera_device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/android') diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp index bbf016c3..7678d448 100644 --- a/src/android/camera_device.cpp +++ b/src/android/camera_device.cpp @@ -853,7 +853,7 @@ const camera_metadata_t *CameraDevice::getStaticMetadata() /* Sensor static metadata. */ if (properties.contains(properties::PixelArraySize)) { const Size &size = - properties.get(properties::PixelArraySize); + properties.get(properties::PixelArraySize); std::vector data{ static_cast(size.width), static_cast(size.height), @@ -872,7 +872,7 @@ const camera_metadata_t *CameraDevice::getStaticMetadata() if (properties.contains(properties::PixelArrayActiveAreas)) { const Span &rects = - properties.get>(properties::PixelArrayActiveAreas); + properties.get(properties::PixelArrayActiveAreas); std::vector data{ static_cast(rects[0].x), static_cast(rects[0].y), -- cgit v1.2.1