From d5b421aaa7fcab4329cdfe5d8b37fce7e8f39fa6 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 25 Apr 2011 22:56:54 -0700 Subject: fix typo in Vector<>:: push_back and push_front parameter were inverted. Change-Id: I867b01de5f58354bb9668fa662dd2a7d78dd3b37 --- 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 90477b75dd..f1e87e6090 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()); } -- cgit v1.2.3-59-g8ed1b