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/pipeline_handler.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/pipeline_handler.h')
-rw-r--r-- | include/libcamera/internal/pipeline_handler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libcamera/internal/pipeline_handler.h b/include/libcamera/internal/pipeline_handler.h index 0748f863..d81c9b85 100644 --- a/include/libcamera/internal/pipeline_handler.h +++ b/include/libcamera/internal/pipeline_handler.h @@ -15,6 +15,7 @@ #include <sys/types.h> #include <vector> +#include <libcamera/class.h> #include <libcamera/controls.h> #include <libcamera/object.h> #include <libcamera/stream.h> @@ -49,8 +50,7 @@ public: std::unique_ptr<IPAProxy> ipa_; private: - CameraData(const CameraData &) = delete; - CameraData &operator=(const CameraData &) = delete; + LIBCAMERA_DISABLE_COPY(CameraData) }; class PipelineHandler : public std::enable_shared_from_this<PipelineHandler>, |