<div dir="ltr"><div dir="ltr">Hi Laurent,<div><br></div><div>Thank you for the patch.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 22 Feb 2021 at 10:46, Laurent Pinchart <<a href="mailto:laurent.pinchart@ideasonboard.com">laurent.pinchart@ideasonboard.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Usage of std::move() on a const lvalue will produce a const rvalue,<br>
which the compiler will bind to the const lvalue reference of the<br>
constructor or assignement operator. This results in the object being<br>
copied, not moved. Drop std::move() in that case as it's misleading.<br>
<br>
Signed-off-by: Laurent Pinchart <<a href="mailto:laurent.pinchart@ideasonboard.com" target="_blank">laurent.pinchart@ideasonboard.com</a>><br></blockquote><div><br></div><div>Reviewed-by: Naushir Patuck <<a href="mailto:naush@raspberrypi.com">naush@raspberrypi.com</a>></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
 src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp<br>
index 5bab313b5cc7..46b7c6dbba0a 100644<br>
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp<br>
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp<br>
@@ -1289,7 +1289,7 @@ void RPiCameraData::statsMetadataComplete(uint32_t bufferId, const ControlList &<br>
<br>
        /* Fill the Request metadata buffer with what the IPA has provided */<br>
        Request *request = requestQueue_.front();<br>
-       request->metadata() = std::move(controls);<br>
+       request->metadata() = controls;<br>
<br>
        /*<br>
         * Also update the ScalerCrop in the metadata with what we actually<br>
@@ -1338,7 +1338,7 @@ void RPiCameraData::embeddedComplete(uint32_t bufferId)<br>
<br>
 void RPiCameraData::setIspControls(const ControlList &controls)<br>
 {<br>
-       ControlList ctrls = std::move(controls);<br>
+       ControlList ctrls = controls;<br>
<br>
        if (ctrls.contains(V4L2_CID_USER_BCM2835_ISP_LENS_SHADING)) {<br>
                ControlValue &value =<br>
-- <br>
Regards,<br>
<br>
Laurent Pinchart<br>
<br>
</blockquote></div></div>