diff options
author | Colugo <colugomusic@gmail.com> | 2020-12-20 16:44:49 +0000 |
---|---|---|
committer | Colugo <colugomusic@gmail.com> | 2020-12-20 16:53:40 +0000 |
commit | 38c9b624db45fd9f00515c28ed6c72edb913b980 (patch) | |
tree | 460112cc8c217afdecca2c2af1908824a27d12ff /src/core/Array.cpp | |
parent | 01c003dfed657c38cf81efddf9441f975020efc7 (diff) | |
download | redot-cpp-38c9b624db45fd9f00515c28ed6c72edb913b980.tar.gz |
Fix constness of Array::find, Array::find_last and Array::rfind
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 676eba5..b63e935 100644 --- a/src/core/Array.cpp +++ b/src/core/Array.cpp @@ -92,11 +92,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); } @@ -146,7 +146,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); } |