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