summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/byte_stream_buffer.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-10-22 14:12:26 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-02-12 14:35:20 +0000
commit640f48d60399fe63f549f6cb5fa8623a6b6b2810 (patch)
tree3802132387aa0f9310e7d0efd5cde23a72e263a0 /include/libcamera/internal/byte_stream_buffer.h
parent83c5a2a7aa67b609bc5c14698b76b9eaee644d17 (diff)
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>
Diffstat (limited to 'include/libcamera/internal/byte_stream_buffer.h')
-rw-r--r--include/libcamera/internal/byte_stream_buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libcamera/internal/byte_stream_buffer.h b/include/libcamera/internal/byte_stream_buffer.h
index db59577d..866cb9b0 100644
--- a/include/libcamera/internal/byte_stream_buffer.h
+++ b/include/libcamera/internal/byte_stream_buffer.h
@@ -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();