From bc48ce68e6d17bbf78ac44645808a432110d9a37 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Wed, 29 Feb 2012 15:47:17 -0800 Subject: [PATCH] Instead of hardcoding OMX component names in our code, support a config file instead. Change-Id: I5835903ab9f1c4a22ccc605ca99ed966767adf57 --- include/utils/Vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/utils/Vector.h b/include/utils/Vector.h index b908e2ab2..5b5296bdb 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()); }