diff options
author | Mathias Agopian <mathias@google.com> | 2011-04-25 22:56:54 -0700 |
---|---|---|
committer | Alex Ray <aray@google.com> | 2013-07-30 13:56:56 -0700 |
commit | 58dc2c8101d273b5fa29ac182183c3508b35dfd7 (patch) | |
tree | 4c1812e87b1bbb567e2989c2d367447a92cdd670 /include | |
parent | bc55d727f3c7a5c95cc7a458ea8309bcff29919b (diff) | |
download | system_core-58dc2c8101d273b5fa29ac182183c3508b35dfd7.zip system_core-58dc2c8101d273b5fa29ac182183c3508b35dfd7.tar.gz system_core-58dc2c8101d273b5fa29ac182183c3508b35dfd7.tar.bz2 |
fix typo in Vector<>:: push_back and push_front
parameter were inverted.
Change-Id: I867b01de5f58354bb9668fa662dd2a7d78dd3b37
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/Vector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/utils/Vector.h b/include/utils/Vector.h index 90477b7..f1e87e6 100644 --- a/include/utils/Vector.h +++ b/include/utils/Vector.h @@ -179,8 +179,8 @@ public: inline const_iterator end() const { return array() + size(); } inline void reserve(size_t n) { setCapacity(n); } inline bool empty() const{ return isEmpty(); } - inline void push_back(const TYPE& item) { insertAt(size(), item); } - inline void push_front(const TYPE& item) { insertAt(0, item); } + inline void push_back(const TYPE& item) { insertAt(item, size()); } + inline void push_front(const TYPE& item) { insertAt(item, 0); } inline iterator erase(iterator pos) { return begin() + removeItemsAt(pos-array()); } |