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:
Kieran Bingham 2020-10-22 14:12:26 +01:00
parent 83c5a2a7aa
commit 640f48d603
11 changed files with 32 additions and 26 deletions

View file

@ -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>,