summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2016-09-07 13:14:40 +0100
committerNarayan Kamath <narayan@google.com>2016-09-07 13:14:40 +0100
commit0b76d6a28e6978151bf245a775329cdae5e574d5 (patch)
treef1e588eb81e3280ee7c78da5ad7c1445ed7ed337 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentcefc0374eb4c0775d684ba5f650eeb1b95ee6d55 (diff)
fd_utils: Fix broken usage of iterators.
There were two separate issues here : - RestatInternal was using an iterator after a call to erase(). This will not work because it will be invalidated. - The "standard" for loop idiom for iterating over a map while making structural changes to it is broken. Switch to a while loop and treat cases where elements are erased differently from cases where they aren't. bug: 31092930 bug: 30963384 Change-Id: I261d59239558230dd8cdd1d1cb5b9e2448a4c23f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions