libcamera: camera: Fix operator= definition

The class assignment operator is usually defined as returning a
reference to the object, to allow a = b = c statements. While the return
type makes no difference when deleting the operator in a class
definition, it's still a good practice to use the correct return type.
Fix it in the Camera and CameraManager classes.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2019-01-27 15:39:26 +01:00
parent 5745bd3df5
commit 92d9df6924
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ public:
const std::string &name);
Camera(const Camera &) = delete;
void operator=(const Camera &) = delete;
Camera &operator=(const Camera &) = delete;
const std::string &name() const;

View file

@ -38,7 +38,7 @@ public:
private:
CameraManager();
CameraManager(const CameraManager &) = delete;
void operator=(const CameraManager &) = delete;
CameraManager &operator=(const CameraManager &) = delete;
~CameraManager();
std::unique_ptr<DeviceEnumerator> enumerator_;