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:
parent
83c5a2a7aa
commit
640f48d603
11 changed files with 32 additions and 26 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue