mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
test: v4l2_subdevice: Remove std::move() that prevents copy elision
Moving a temporary value prevents copy elision. Remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
4088ae7a20
commit
d98ab6f2ae
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ int V4L2SubdeviceTest::init()
|
|||
}
|
||||
|
||||
DeviceMatch dm("vimc");
|
||||
media_ = std::move(enumerator_->search(dm));
|
||||
media_ = enumerator_->search(dm);
|
||||
if (!media_) {
|
||||
cerr << "Unable to find \'vimc\' media device node" << endl;
|
||||
return TestSkip;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue