summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-26 17:46:04 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-26 19:25:15 +0300
commitd98ab6f2ae54ed5c97f64479de506bb7ab2e64a5 (patch)
tree4ce063ad057926b0b14a5360f0f2c5f2a4cef37f
parent4088ae7a20034270b632a5a3b163490a9654ae1d (diff)
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>
-rw-r--r--test/v4l2_subdevice/v4l2_subdevice_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/v4l2_subdevice/v4l2_subdevice_test.cpp b/test/v4l2_subdevice/v4l2_subdevice_test.cpp
index dfcf779a..72d5f725 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;