From f24f77e7f506b6134e2636be27db7227c5052a26 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 13 Oct 2019 22:57:56 +0300 Subject: libcamera: controls: Prevent copies of ControlId class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that the V4L2ControlId embedded in V4L2ControlInfo has been moved out and doesn't require to be copied anymore, the base ControlId class doesn't need to be copyable either. Delete the ControlId copy constructor and copy assignment operator. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund Reviewed-by: Jacopo Mondi --- include/libcamera/controls.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index ebc4204f..5534a2ed 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -68,12 +68,11 @@ protected: : id_(id), name_(name), type_(type) { } -#ifndef __DOXYGEN__ - ControlId &operator=(const ControlId &) = default; - ControlId(const ControlId &) = default; -#endif private: + ControlId &operator=(const ControlId &) = delete; + ControlId(const ControlId &) = delete; + unsigned int id_; std::string name_; ControlType type_; -- cgit v1.2.1