fix an instance of bugprone-move-forwarding-reference
Unless it's guaranteed that `std::forward` always turns into an rvalue ref, using `std::move(x)`, where `x`'s type is a universal reference, is generally unsafe. `std::forward` is preferred for these cases. Bug: 1134310 Change-Id: I9f00c6bf7dff033191adf75a9943a0e9cb139b1e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2443730 Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Auto-Submit: George Burgess <gbiv@chromium.org> Reviewed-by:Thomas Anderson <thomasanderson@chromium.org> Cr-Commit-Position: refs/heads/master@{#812953}
Showing
Please register or sign in to comment