diff options
author | Tomi Valkeinen <tomi.valkeinen@iki.fi> | 2020-09-25 17:05:25 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-09-29 03:55:27 +0300 |
commit | f517960c6a41d3098a2e23bdf490d86fad5aa395 (patch) | |
tree | 44a49654898d329a00d72b435e613f83df37093a | |
parent | 921c0cdc6a0c486c9b53af5746b1cce6a2501b3e (diff) |
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 <tomi.valkeinen@iki.fi>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | include/libcamera/framebuffer_allocator.h | 4 |
1 files 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> camera); - FrameBufferAllocator(const Camera &) = delete; - FrameBufferAllocator &operator=(const Camera &) = delete; + FrameBufferAllocator(const FrameBufferAllocator &) = delete; + FrameBufferAllocator &operator=(const FrameBufferAllocator &) = delete; ~FrameBufferAllocator(); |