summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2021-03-03 01:32:21 +0000
committer Siarhei Vishniakou <svv@google.com> 2021-03-03 01:35:22 +0000
commit57479982c2af7174cf36adad1ef1399a47d44699 (patch)
treef2d10e38e1951b049c38c01e58e5f152548df2d5 /libs/gui/LayerState.cpp
parent7766c03ec5f76ea0ad6e37b214c425653b8416a6 (diff)
Do not modify vector after getting references
We used to obtain a reference to a specific element inside a vector. We would then modify the vector, invalidating the reference. But we then used the reference, and passed it to 'assignPointerIds'. Refactor the code to modify the collection first, and then to proceed with modifying / reading the elements. Bug: 179839665 Test: atest inputflinger_tests (on a hwasan build) Change-Id: I9204b954884e9c83a50babdad5e08a0f6d18ad78
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions