[libcamera-devel] [PATCH 6/8] test: v4l2_subdevice: Remove std::move() that prevents copy elision
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Fri Apr 26 17:01:53 CEST 2019
Moving a temporary value prevents copy elision. Remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
test/v4l2_subdevice/v4l2_subdevice_test.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/v4l2_subdevice/v4l2_subdevice_test.cpp b/test/v4l2_subdevice/v4l2_subdevice_test.cpp
index dfcf779af95e..72d5f72543d2 100644
--- a/test/v4l2_subdevice/v4l2_subdevice_test.cpp
+++ b/test/v4l2_subdevice/v4l2_subdevice_test.cpp
@@ -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;
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list