Commit d99be490 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix use-after-move in //device/fido/cable/

Fix use-after-move (potential) bugs found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: Ic06815193acc870c4639a700f4726f2cd21e2699
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385435Reviewed-by: default avatarAdam Langley <agl@chromium.org>
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803101}
parent 95af588f
......@@ -226,8 +226,7 @@ class FidoBleConnectionTest : public ::testing::Test {
EXPECT_CALL(*fido_device_, GetAddress)
.WillRepeatedly(::testing::Return(new_address));
for (auto& observer : adapter_->GetObservers())
observer.DeviceAddressChanged(adapter_.get(), fido_device_,
std::move(old_address));
observer.DeviceAddressChanged(adapter_.get(), fido_device_, old_address);
}
void SetNextReadControlPointLengthReponse(bool success,
......
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