Commit 9b4c84f9 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Chromium LUCI CQ

Fix useless move() in //c/credential_provider/test/

Drop std::move() call that has no effect and only triggers the
"bugprone-use-after-move" clang-tidy warning.

Bug: 1122844
Change-Id: I526182ca5e829cdd738740c0a081387481cc2ba5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2560126
Auto-Submit: Maksim Ivanov <emaxx@chromium.org>
Commit-Queue: Tien Mai <tienmai@chromium.org>
Reviewed-by: default avatarTien Mai <tienmai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834688}
parent 641e7e11
...@@ -706,7 +706,7 @@ std::unique_ptr<WinHttpUrlFetcher> FakeWinHttpUrlFetcherFactory::Create( ...@@ -706,7 +706,7 @@ std::unique_ptr<WinHttpUrlFetcher> FakeWinHttpUrlFetcherFactory::Create(
if (fake_responses_.count(url) == 0 && failed_http_fetch_hr_.count(url) == 0) if (fake_responses_.count(url) == 0 && failed_http_fetch_hr_.count(url) == 0)
return nullptr; return nullptr;
FakeWinHttpUrlFetcher* fetcher = new FakeWinHttpUrlFetcher(std::move(url)); FakeWinHttpUrlFetcher* fetcher = new FakeWinHttpUrlFetcher(url);
if (fake_responses_.count(url) != 0) { if (fake_responses_.count(url) != 0) {
const Response& response = fake_responses_[url].front(); const Response& response = fake_responses_[url].front();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment