From b524b40fdc5325c840192ce92dbed8108ccef2d9 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 6 Jun 2015 22:06:58 -0300 Subject: -fixed many memory initialization issues -fixed deadlock on previews thread -fixed compilation errors on unix --- core/vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/vector.h') 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 - 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::_copy_on_write() { } template template -int Vector::find(T_val& p_val) const { +int Vector::find(const T_val &p_val) const { int ret = -1; if (size() == 0) -- cgit v1.2.3