diff options
Diffstat (limited to 'src/core/Array.cpp')
-rw-r--r-- | src/core/Array.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/Array.cpp b/src/core/Array.cpp index 04b4a3d..dee4a5f 100644 --- a/src/core/Array.cpp +++ b/src/core/Array.cpp @@ -94,11 +94,11 @@ Variant Array::back() const { return Variant(v); } -int Array::find(const Variant &what, const int from) { +int Array::find(const Variant &what, const int from) const { return godot::api->godot_array_find(&_godot_array, (godot_variant *)&what, from); } -int Array::find_last(const Variant &what) { +int Array::find_last(const Variant &what) const { return godot::api->godot_array_find_last(&_godot_array, (godot_variant *)&what); } @@ -148,7 +148,7 @@ void Array::resize(const int size) { godot::api->godot_array_resize(&_godot_array, size); } -int Array::rfind(const Variant &what, const int from) { +int Array::rfind(const Variant &what, const int from) const { return godot::api->godot_array_rfind(&_godot_array, (godot_variant *)&what, from); } |