diff options
author | Marc <marc.gilleron@gmail.com> | 2021-01-31 20:15:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 20:15:44 +0000 |
commit | e8de1fa2a5e2974c273fde35bc5ecac375ae98ec (patch) | |
tree | 286a8e2e25c18fe11f346835b3021afae2e9b77f /include/core/Array.hpp | |
parent | 05ba977cc60653952b73dc03498ebc7a93cef120 (diff) | |
parent | b400dba87534640eeddbcdb6b319335a6a7639d8 (diff) | |
download | redot-cpp-e8de1fa2a5e2974c273fde35bc5ecac375ae98ec.tar.gz |
Merge pull request #490 from Zylann/container_leaks
Fix container and string leaks
Diffstat (limited to 'include/core/Array.hpp')
-rw-r--r-- | include/core/Array.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/Array.hpp b/include/core/Array.hpp index 5227fea..5913fae 100644 --- a/include/core/Array.hpp +++ b/include/core/Array.hpp @@ -58,6 +58,8 @@ class Array { godot_array _godot_array; friend class Variant; + friend class Dictionary; + friend class String; inline explicit Array(const godot_array &other) { _godot_array = other; } @@ -88,7 +90,7 @@ public: Variant &operator[](const int idx); - Variant operator[](const int idx) const; + const Variant &operator[](const int idx) const; void append(const Variant &v); |