summaryrefslogtreecommitdiffstats
path: root/include/core/NodePath.hpp
diff options
context:
space:
mode:
authorMarc <marc.gilleron@gmail.com>2021-01-31 20:15:44 +0000
committerGitHub <noreply@github.com>2021-01-31 20:15:44 +0000
commite8de1fa2a5e2974c273fde35bc5ecac375ae98ec (patch)
tree286a8e2e25c18fe11f346835b3021afae2e9b77f /include/core/NodePath.hpp
parent05ba977cc60653952b73dc03498ebc7a93cef120 (diff)
parentb400dba87534640eeddbcdb6b319335a6a7639d8 (diff)
downloadredot-cpp-e8de1fa2a5e2974c273fde35bc5ecac375ae98ec.tar.gz
Merge pull request #490 from Zylann/container_leaks
Fix container and string leaks
Diffstat (limited to 'include/core/NodePath.hpp')
-rw-r--r--include/core/NodePath.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/NodePath.hpp b/include/core/NodePath.hpp
index 221c5ce..36dda7d 100644
--- a/include/core/NodePath.hpp
+++ b/include/core/NodePath.hpp
@@ -10,6 +10,11 @@ namespace godot {
class NodePath {
godot_node_path _node_path;
+ friend class Variant;
+ inline explicit NodePath(godot_node_path node_path) {
+ _node_path = node_path;
+ }
+
public:
NodePath();