diff options
author | Mathias Agopian <mathias@google.com> | 2011-04-25 22:56:54 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-04-25 22:59:07 -0700 |
commit | 1d38d936a159a73ad06e481bd960d37c5ae1efed (patch) | |
tree | ea741faa897427ca4dbe745fbd28793abfb87801 /include | |
parent | 641e093f28b0c1b4b3c5c399b9941479fd760eae (diff) | |
download | frameworks_base-1d38d936a159a73ad06e481bd960d37c5ae1efed.zip frameworks_base-1d38d936a159a73ad06e481bd960d37c5ae1efed.tar.gz frameworks_base-1d38d936a159a73ad06e481bd960d37c5ae1efed.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()); } |