[libcamera-devel] [PATCH 6/8] test: v4l2_subdevice: Remove std::move() that prevents copy elision
Kieran Bingham
kieran.bingham at ideasonboard.com
Fri Apr 26 18:24:53 CEST 2019
On 26/04/2019 17:01, Laurent Pinchart wrote:
> Moving a temporary value prevents copy elision. Remove it.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham 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
--
Kieran
More information about the libcamera-devel
mailing list