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
@@ -11,6 +11,7 @@
#include <stdint.h>
#include <type_traits>
#include <libcamera/class.h>
#include <libcamera/span.h>
namespace libcamera {
@@ -65,8 +66,7 @@ public:
}
private:
ByteStreamBuffer(const ByteStreamBuffer &other) = delete;
ByteStreamBuffer &operator=(const ByteStreamBuffer &other) = delete;
LIBCAMERA_DISABLE_COPY(ByteStreamBuffer)
void setOverflow();