diff options
author | mashumafi <mashumafi@gmail.com> | 2022-03-27 21:57:20 -0400 |
---|---|---|
committer | mashumafi <mashumafi@gmail.com> | 2022-03-27 22:10:36 -0400 |
commit | 9c2bfeb2fbad050322a3899451179bb346af7f64 (patch) | |
tree | 10896593a644c5d3db81c577d697b5398665211e /core/variant/array.h | |
parent | a0071029f2c4ec006d3443f25aa77e2c2c7a1ece (diff) |
Const Ref Callable for custom sort/search
Diffstat (limited to 'core/variant/array.h')
-rw-r--r-- | core/variant/array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/array.h b/core/variant/array.h index 72bed5932c..ab5f7cd50f 100644 --- a/core/variant/array.h +++ b/core/variant/array.h @@ -82,10 +82,10 @@ public: Variant back() const; void sort(); - void sort_custom(Callable p_callable); + void sort_custom(const Callable &p_callable); void shuffle(); int bsearch(const Variant &p_value, bool p_before = true); - int bsearch_custom(const Variant &p_value, Callable p_callable, bool p_before = true); + int bsearch_custom(const Variant &p_value, const Callable &p_callable, bool p_before = true); void reverse(); int find(const Variant &p_value, int p_from = 0) const; |