From 3efc7e8834303fbc71779b199e415ccfe18a94f0 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Fri, 24 Jul 2020 14:00:58 +0200 Subject: andrdid: camera_device: Store const templates The request capture templates stored in the CameraDevice::requestTemplates_ should not be modified once created. Store a const pointer to the request templates in the class member map. Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- src/android/camera_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/android/camera_device.h b/src/android/camera_device.h index 00472c21..fd2eeff1 100644 --- a/src/android/camera_device.h +++ b/src/android/camera_device.h @@ -95,7 +95,7 @@ private: std::unique_ptr config_; CameraMetadata *staticMetadata_; - std::map requestTemplates_; + std::map requestTemplates_; const camera3_callback_ops_t *callbacks_; std::vector streamConfigurations_; -- cgit v1.2.1