summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.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
commitc1053339974b52f7338cd2076f6ef6524a6fcfd5 (patch)
tree8320d89713f4277f6ed25399ecca8bd3077c9039 /opengl/tests/gl_basic/gl_basic.cpp
parent686f62fcaf4ce2f48d662fa89fb2e84ee9339c4d (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 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions