From 81493f36e19a02d80517e88bc1e8fc6a492e7fd5 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Tue, 22 Oct 2019 01:50:53 +0200 Subject: libcamera: controls: Make ControlId constructor public MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to be able to create a ControlId from serialized data, make its constructor public. Signed-off-by: Jacopo Mondi Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- include/libcamera/controls.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index 1468326d..a0379d52 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -59,16 +59,15 @@ private: class ControlId { public: - unsigned int id() const { return id_; } - const std::string &name() const { return name_; } - ControlType type() const { return type_; } - -protected: ControlId(unsigned int id, const std::string &name, ControlType type) : id_(id), name_(name), type_(type) { } + unsigned int id() const { return id_; } + const std::string &name() const { return name_; } + ControlType type() const { return type_; } + private: ControlId &operator=(const ControlId &) = delete; ControlId(const ControlId &) = delete; -- cgit v1.2.1