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>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user