From f517960c6a41d3098a2e23bdf490d86fad5aa395 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 25 Sep 2020 17:05:25 +0300 Subject: FrameBufferAllocator: fix non-copyability FrameBufferAllocator is supposed to delete copy constructor and copy-assignment operator. It doesn't do that as it uses Camera as a parameter instead of FrameBufferAllocator. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham Signed-off-by: Laurent Pinchart --- include/libcamera/framebuffer_allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libcamera/framebuffer_allocator.h b/include/libcamera/framebuffer_allocator.h index 78f13539..a96aaeae 100644 --- a/include/libcamera/framebuffer_allocator.h +++ b/include/libcamera/framebuffer_allocator.h @@ -21,8 +21,8 @@ class FrameBufferAllocator { public: FrameBufferAllocator(std::shared_ptr camera); - FrameBufferAllocator(const Camera &) = delete; - FrameBufferAllocator &operator=(const Camera &) = delete; + FrameBufferAllocator(const FrameBufferAllocator &) = delete; + FrameBufferAllocator &operator=(const FrameBufferAllocator &) = delete; ~FrameBufferAllocator(); -- cgit v1.2.1