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/String.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/String.hpp')
-rw-r--r-- | include/core/String.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/core/String.hpp b/include/core/String.hpp index ebf161a..57e7eb7 100644 --- a/include/core/String.hpp +++ b/include/core/String.hpp @@ -29,7 +29,10 @@ public: class String { godot_string _godot_string; - String(godot_string contents) : + friend class Dictionary; + friend class NodePath; + friend class Variant; + explicit inline String(godot_string contents) : _godot_string(contents) {} public: |