diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-06-06 22:06:58 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-06-06 22:06:58 -0300 |
commit | b524b40fdc5325c840192ce92dbed8108ccef2d9 (patch) | |
tree | ec7f74db082b4b91f7614ed4391c53bc73b60bfd /core/vector.h | |
parent | 14c4c1b568ffa40a179332fbc77e9b52c6bdf514 (diff) | |
download | redot-engine-b524b40fdc5325c840192ce92dbed8108ccef2d9.tar.gz |
-fixed many memory initialization issues
-fixed deadlock on previews thread
-fixed compilation errors on unix
Diffstat (limited to 'core/vector.h')
-rw-r--r-- | core/vector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vector.h b/core/vector.h index 04018b9f78..b93d9a0dea 100644 --- a/core/vector.h +++ b/core/vector.h @@ -104,7 +104,7 @@ public: template <class T_val> - int find(T_val& p_val) const; + int find(const T_val& p_val) const; void set(int p_index,T p_elem); T get(int p_index) const; @@ -221,7 +221,7 @@ void Vector<T>::_copy_on_write() { } template<class T> template<class T_val> -int Vector<T>::find(T_val& p_val) const { +int Vector<T>::find(const T_val &p_val) const { int ret = -1; if (size() == 0) |