From dc443ec1b252780f27178c2e71e163f7620b8ee8 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Sun, 27 Jan 2019 15:39:26 +0100 Subject: libcamera: v4l2_device: Fix operator= definition While the C++ allows the redefinition of operator= to return an arbitrary type, it is customary to return a reference to the assigned value type. Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- src/libcamera/include/v4l2_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcamera/include/v4l2_device.h b/src/libcamera/include/v4l2_device.h index 413bb7fd..c67ebbff 100644 --- a/src/libcamera/include/v4l2_device.h +++ b/src/libcamera/include/v4l2_device.h @@ -62,7 +62,7 @@ public: V4L2Device(const V4L2Device &) = delete; ~V4L2Device(); - void operator=(const V4L2Device &) = delete; + V4L2Device &operator=(const V4L2Device &) = delete; int open(); bool isOpen() const; -- cgit v1.2.1