summaryrefslogtreecommitdiff
path: root/include/libcamera/camera.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-10-22 14:12:26 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-02-12 14:35:20 +0000
commit640f48d60399fe63f549f6cb5fa8623a6b6b2810 (patch)
tree3802132387aa0f9310e7d0efd5cde23a72e263a0 /include/libcamera/camera.h
parent83c5a2a7aa67b609bc5c14698b76b9eaee644d17 (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/camera.h')
-rw-r--r--include/libcamera/camera.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libcamera/camera.h b/include/libcamera/camera.h
index cff9f46e..bd81fb54 100644
--- a/include/libcamera/camera.h
+++ b/include/libcamera/camera.h
@@ -81,9 +81,6 @@ public:
const std::string &id,
const std::set<Stream *> &streams);
- Camera(const Camera &) = delete;
- Camera &operator=(const Camera &) = delete;
-
const std::string &id() const;
Signal<Request *, FrameBuffer *> bufferCompleted;
@@ -107,6 +104,8 @@ public:
int stop();
private:
+ LIBCAMERA_DISABLE_COPY(Camera)
+
Camera(PipelineHandler *pipe, const std::string &id,
const std::set<Stream *> &streams);
~Camera();