diff options
author | Răzvan Cosmin Rădulescu <razvancosmin.radulescu@gmail.com> | 2016-08-27 17:33:45 +0200 |
---|---|---|
committer | Răzvan Cosmin Rădulescu <razvancosmin.radulescu@gmail.com> | 2016-09-11 17:37:21 +0200 |
commit | 1a7aae7443194f7d6137901af369c843b3911b4f (patch) | |
tree | e9ccf4f9a80590d6e27966536770f59fddb76628 /core/array.h | |
parent | c40ab446c9bcd5b28a073fea4113794bb701937b (diff) | |
download | redot-engine-1a7aae7443194f7d6137901af369c843b3911b4f.tar.gz |
(Array) pop_front, pop_back return values
pop_front, pop_back now return values instead of `void`. Things
I didn't know how to properly implement:
1. pop_front & pop_back shows in the help menu Object as return value.
I know this is incorrect but if not Object than what? Cause it
can't be void. It needs to be a generic type that includes all the
Array types
Diffstat (limited to 'core/array.h')
-rw-r--r-- | core/array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/array.h b/core/array.h index dfc902525c..eb79b0cf33 100644 --- a/core/array.h +++ b/core/array.h @@ -80,8 +80,8 @@ public: void erase(const Variant& p_value); void push_front(const Variant& p_value); - void pop_back(); - void pop_front(); + Variant pop_back(); + Variant pop_front(); Array(const Array& p_from); Array(bool p_shared=false); |