diff options
author | Andreas Huber <andih@google.com> | 2012-02-29 15:47:17 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-03-01 11:30:10 -0800 |
commit | bc48ce68e6d17bbf78ac44645808a432110d9a37 (patch) | |
tree | 2c9be418dc575ea7b0be621d7d9020d814ddf050 /include | |
parent | 7be71a88064553c259333b9acf85f0d5d4100f5a (diff) | |
download | frameworks_native-bc48ce68e6d17bbf78ac44645808a432110d9a37.zip frameworks_native-bc48ce68e6d17bbf78ac44645808a432110d9a37.tar.gz frameworks_native-bc48ce68e6d17bbf78ac44645808a432110d9a37.tar.bz2 |
Instead of hardcoding OMX component names in our code, support
a config file instead.
Change-Id: I5835903ab9f1c4a22ccc605ca99ed966767adf57
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 b908e2a..5b5296b 100644 --- a/include/utils/Vector.h +++ b/include/utils/Vector.h @@ -186,8 +186,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(item, size()); } - inline void push_front(const TYPE& item) { insertAt(item, 0); } + inline void push_back(const TYPE& item) { insertAt(item, size(), 1); } + inline void push_front(const TYPE& item) { insertAt(item, 0, 1); } inline iterator erase(iterator pos) { return begin() + removeItemsAt(pos-array()); } |