From 6dcfba2e9d65b0439265ae267a436b40bb222e4d Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 15 May 2021 20:38:55 +0300 Subject: android: camera_metadata: Constify argument to addEntry() and updateEntry() The addEntry() and updateEntry() overrides that take a reference to a container don't need to modify the container. Make it const. Signed-off-by: Laurent Pinchart Reviewed-by: Hirokazu Honda Reviewed-by: Kieran Bingham Reviewed-by: Paul Elder Tested-by: Paul Elder --- src/android/camera_metadata.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/android/camera_metadata.h b/src/android/camera_metadata.h index 56df6f1c..f95c3458 100644 --- a/src/android/camera_metadata.h +++ b/src/android/camera_metadata.h @@ -42,7 +42,7 @@ public: template - bool addEntry(uint32_t tag, S &data) + bool addEntry(uint32_t tag, const S &data) { return addEntry(tag, data.data(), data.size(), sizeof(T)); } @@ -67,7 +67,7 @@ public: template - bool updateEntry(uint32_t tag, S &data) + bool updateEntry(uint32_t tag, const S &data) { return updateEntry(tag, data.data(), data.size()); } -- cgit v1.2.1