diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-07-14 00:29:49 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2011-07-14 04:11:23 -0700 |
commit | ab561139f9e9c9df8a450f2990ad6588fa690e38 (patch) | |
tree | 22f876ecd0ddef6a18b71caa6d7552d965cebdf8 /tools/aidl/generate_java.cpp | |
parent | 11bf79d6e3542e40ebd212b0f5d7cb3370f3068d (diff) |
Minor code cleanups in vector.
Fixed a potential bug where calling replaceAt with a reference to
an existing element in the vector at the same index would cause
the element to be destroyed while being copied to itself.
Refactored the conditions in _grow and _shrink for clarity.
The computations are exactly the same but I think it reads better
this way. In particular, the ssize_t variable 's' is gone: it didn't
need to be signed anyways because its value could never be negative.
Change-Id: If087841c15e6a87160eee874720c4a77eb0e99a6
Diffstat (limited to 'tools/aidl/generate_java.cpp')
0 files changed, 0 insertions, 0 deletions