diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-10 16:52:15 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-09-09 15:58:23 +0100 |
commit | 3d297f7ac840c3abe8e72d525f0fbc1fe607f94d (patch) | |
tree | 1c91ded6ebf7e6991da1f01efa5a3b1437bc946e /include | |
parent | 0eea207b04ec2764fc4f2bafa1ec6df831a74573 (diff) |
libcamera: controls: Use a const ControlValidator
The ControlValidator passed to a ControlList constructor
is used, but not modified.
Make it const.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/controls.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index 6668e4bb..b3590fdb 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -353,8 +353,8 @@ private: public: ControlList(); - ControlList(const ControlIdMap &idmap, ControlValidator *validator = nullptr); - ControlList(const ControlInfoMap &infoMap, ControlValidator *validator = nullptr); + ControlList(const ControlIdMap &idmap, const ControlValidator *validator = nullptr); + ControlList(const ControlInfoMap &infoMap, const ControlValidator *validator = nullptr); using iterator = ControlListMap::iterator; using const_iterator = ControlListMap::const_iterator; @@ -412,7 +412,7 @@ private: const ControlValue *find(unsigned int id) const; ControlValue *find(unsigned int id); - ControlValidator *validator_; + const ControlValidator *validator_; const ControlIdMap *idmap_; const ControlInfoMap *infoMap_; |