Commit 485a081d authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix use-after-move in //components/viz/service/hit_test/

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

Bug: 1122844
Change-Id: I2fccd171a4d970bc1cf29ec4314e63c8656fd3e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382596Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803663}
parent e544af06
...@@ -1165,7 +1165,7 @@ TEST_F(HitTestAggregatorTest, HitTestDataNotUpdated) { ...@@ -1165,7 +1165,7 @@ TEST_F(HitTestAggregatorTest, HitTestDataNotUpdated) {
// We updated hit-test data. Expect the index to have changed. // We updated hit-test data. Expect the index to have changed.
support()->SubmitCompositorFrame(surface_id.local_surface_id(), support()->SubmitCompositorFrame(surface_id.local_surface_id(),
MakeDefaultCompositorFrame(), MakeDefaultCompositorFrame(),
std::move(hit_test_region_list)); std::move(hit_test_region_list_copy));
aggregator->Aggregate(surface_id); aggregator->Aggregate(surface_id);
EXPECT_NE(last_index, aggregator->GetLastSubmitHitTestRegionListIndex()); EXPECT_NE(last_index, aggregator->GetLastSubmitHitTestRegionListIndex());
} }
......
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