summaryrefslogtreecommitdiff
path: root/tools/aidl/generate_java.cpp
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-07-14 00:29:49 -0700
committerJeff Brown <jeffbrown@google.com>2011-07-14 04:11:23 -0700
commitab561139f9e9c9df8a450f2990ad6588fa690e38 (patch)
tree22f876ecd0ddef6a18b71caa6d7552d965cebdf8 /tools/aidl/generate_java.cpp
parent11bf79d6e3542e40ebd212b0f5d7cb3370f3068d (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