From patchwork Fri Apr 26 15:01:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1112 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4CE8060EA2 for ; Fri, 26 Apr 2019 17:02:11 +0200 (CEST) Received: from pendragon.station (net-37-182-44-227.cust.vodafonedsl.it [37.182.44.227]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DF1A6337 for ; Fri, 26 Apr 2019 17:02:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1556290931; bh=LP1in9EHTtSqNsyxOHnHOkfMJI7ghY04OLOQ0LsqL0I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tRlSdH67W2IHExsfo39p8L794RA44GYxgYjeclvkTzm/Zbz+seJdWb+hkrn97Ydwi wcVLDN4xAzAYgh/xp7MXpr+fCKzCiT1ILo80B1knKE/v6q3Nr3vX4T6v+jiiisvSmG FfE6c09jxiuIhlTCyhZRCd1OEl6bkpzba0tiYn1U= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Fri, 26 Apr 2019 18:01:53 +0300 Message-Id: <20190426150155.18652-7-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190426150155.18652-1-laurent.pinchart@ideasonboard.com> References: <20190426150155.18652-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 6/8] test: v4l2_subdevice: Remove std::move() that prevents copy elision X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2019 15:02:13 -0000 Moving a temporary value prevents copy elision. Remove it. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- 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;