[libcamera-devel] [PATCH] FrameBufferAllocator: fix non-copyability
Tomi Valkeinen
tomi.valkeinen at iki.fi
Fri Sep 25 16:05:25 CEST 2020
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 at iki.fi>
---
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 78f1353..a96aaea 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();
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
More information about the libcamera-devel
mailing list