diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2019-01-27 15:39:26 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2019-01-27 22:14:40 +0100 |
commit | dc443ec1b252780f27178c2e71e163f7620b8ee8 (patch) | |
tree | 7137bcff5003af9ba512d5f4b7532c3787fb7431 | |
parent | eae59ca2cdc68236136685c52da17f6c37515d59 (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>
-rw-r--r-- | src/libcamera/include/v4l2_device.h | 2 |
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; |