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>
This commit is contained in:
Jacopo Mondi 2019-01-27 15:39:26 +01:00
parent eae59ca2cd
commit dc443ec1b2

View file

@ -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;