summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-01-27 15:39:26 +0100
committerJacopo Mondi <jacopo@jmondi.org>2019-01-27 22:14:40 +0100
commitdc443ec1b252780f27178c2e71e163f7620b8ee8 (patch)
tree7137bcff5003af9ba512d5f4b7532c3787fb7431 /src
parenteae59ca2cdc68236136685c52da17f6c37515d59 (diff)
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 <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/include/v4l2_device.h2
1 files changed, 1 insertions, 1 deletions
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;