libcamera: device_enumerator: Remove unnecessary rvalue references
There are std::unique_ptr rvalue reference arguments. They are intended to pass the ownership to the functions. In the case, it is right to let the argument be std::unique_ptr value and pass by std::move(). Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
5154e14b3e
commit
67e791373d
@@ -246,7 +246,7 @@ std::unique_ptr<MediaDevice> DeviceEnumerator::createDevice(const std::string &d
|
||||
* This method shall be called after all members of the entities of the
|
||||
* media graph have been confirmed to be initialized.
|
||||
*/
|
||||
void DeviceEnumerator::addDevice(std::unique_ptr<MediaDevice> &&media)
|
||||
void DeviceEnumerator::addDevice(std::unique_ptr<MediaDevice> media)
|
||||
{
|
||||
LOG(DeviceEnumerator, Debug)
|
||||
<< "Added device " << media->deviceNode() << ": " << media->driver();
|
||||
|
||||
Reference in New Issue
Block a user