summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-07-24 13:58:00 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-08-05 14:33:52 +0200
commit17a21b095a555ad70617bd9007b91609b0865111 (patch)
treee99e8f17f1ba250e1e35808badd11c63859ac891
parent1074604c9e2b6d9afa0247f2ca62b3140131d639 (diff)
android: camera_metadata: Mark isValid() as const
The CameraMetadata::isValid() method does not modify the object state and can be called on const instances of the CameraMetadata class. Mark the method as const to allow that. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r--src/android/camera_metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/camera_metadata.h b/src/android/camera_metadata.h
index 75a9d706..348a0181 100644
--- a/src/android/camera_metadata.h
+++ b/src/android/camera_metadata.h
@@ -17,7 +17,7 @@ public:
CameraMetadata(size_t entryCapacity, size_t dataCapacity);
~CameraMetadata();
- bool isValid() { return valid_; }
+ bool isValid() const { return valid_; }
bool addEntry(uint32_t tag, const void *data, size_t data_count);
camera_metadata_t *get();