diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-10-22 14:12:26 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-02-12 14:35:20 +0000 |
commit | 640f48d60399fe63f549f6cb5fa8623a6b6b2810 (patch) | |
tree | 3802132387aa0f9310e7d0efd5cde23a72e263a0 /include/libcamera/internal/v4l2_subdevice.h | |
parent | 83c5a2a7aa67b609bc5c14698b76b9eaee644d17 (diff) |
libcamera: Utilise LIBCAMERA_DISABLE_COPY
Replace existing use cases where the copy constructor and copy
assignment operator are deleted with the LIBCAMERA_DISABLE_COPY
statement
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include/libcamera/internal/v4l2_subdevice.h')
-rw-r--r-- | include/libcamera/internal/v4l2_subdevice.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libcamera/internal/v4l2_subdevice.h b/include/libcamera/internal/v4l2_subdevice.h index eb25fa2f..d2b9ca55 100644 --- a/include/libcamera/internal/v4l2_subdevice.h +++ b/include/libcamera/internal/v4l2_subdevice.h @@ -11,6 +11,7 @@ #include <string> #include <vector> +#include <libcamera/class.h> #include <libcamera/geometry.h> #include "libcamera/internal/formats.h" @@ -41,8 +42,6 @@ public: }; explicit V4L2Subdevice(const MediaEntity *entity); - V4L2Subdevice(const V4L2Subdevice &) = delete; - V4L2Subdevice &operator=(const V4L2Subdevice &) = delete; ~V4L2Subdevice(); int open(); @@ -68,6 +67,8 @@ protected: std::string logPrefix() const override; private: + LIBCAMERA_DISABLE_COPY(V4L2Subdevice) + std::vector<unsigned int> enumPadCodes(unsigned int pad); std::vector<SizeRange> enumPadSizes(unsigned int pad, unsigned int code); |