aboutsummaryrefslogtreecommitdiff
path: root/core/vector.h
diff options
context:
space:
mode:
authorJuan Linietsky2015-06-06 22:06:58 -0300
committerJuan Linietsky2015-06-06 22:06:58 -0300
commitb524b40fdc5325c840192ce92dbed8108ccef2d9 (patch)
treeec7f74db082b4b91f7614ed4391c53bc73b60bfd /core/vector.h
parent14c4c1b568ffa40a179332fbc77e9b52c6bdf514 (diff)
downloadgodot-b524b40fdc5325c840192ce92dbed8108ccef2d9.tar.gz
godot-b524b40fdc5325c840192ce92dbed8108ccef2d9.tar.zst
godot-b524b40fdc5325c840192ce92dbed8108ccef2d9.zip
Diffstat (limited to 'core/vector.h')
-rw-r--r--core/vector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vector.h b/core/vector.h
index 04018b9f7..b93d9a0de 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)