summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayLuts.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2021-06-21 22:30:51 +0000
committer Siarhei Vishniakou <svv@google.com> 2021-06-21 22:45:36 +0000
commitade0672333565773645abe89eccc468572c07228 (patch)
tree228f7fa1537f304609295f91f60e8429d131ff9e /libs/gui/DisplayLuts.cpp
parent09052cc6655ab2756c4c484b958cdaf29325e652 (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) Merged-In: I9204b954884e9c83a50babdad5e08a0f6d18ad78 Change-Id: I9204b954884e9c83a50babdad5e08a0f6d18ad78
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions