diff options
author | Marius Guggenmos <MariusGuggenmos@gmail.com> | 2017-10-07 17:49:23 +0200 |
---|---|---|
committer | Marius Guggenmos <MariusGuggenmos@gmail.com> | 2017-10-09 16:36:09 +0200 |
commit | 2f173a67abebd14805d6f7c44db2e8b5c4b5cf83 (patch) | |
tree | ba1b1b8181978719615df5f0e46e019462dce438 /core/array.h | |
parent | bd10a002402de6e3a69a17af604784ea7f5b3330 (diff) | |
download | redot-engine-2f173a67abebd14805d6f7c44db2e8b5c4b5cf83.tar.gz |
Array::sort, sort_custom and invert now return reference to Array to allow chaining of operations
Diffstat (limited to 'core/array.h')
-rw-r--r-- | core/array.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/array.h b/core/array.h index 8a647dd13b..2c29103108 100644 --- a/core/array.h +++ b/core/array.h @@ -68,9 +68,9 @@ public: Variant front() const; Variant back() const; - void sort(); - void sort_custom(Object *p_obj, const StringName &p_function); - void invert(); + Array &sort(); + Array &sort_custom(Object *p_obj, const StringName &p_function); + Array &invert(); int find(const Variant &p_value, int p_from = 0) const; int rfind(const Variant &p_value, int p_from = -1) const; |