summaryrefslogtreecommitdiffstats
path: root/src/core/String.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/String.cpp')
-rw-r--r--src/core/String.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/String.cpp b/src/core/String.cpp
index c1efee5..19e44f9 100644
--- a/src/core/String.cpp
+++ b/src/core/String.cpp
@@ -73,6 +73,11 @@ String::String(const String &other) {
godot::api->godot_string_new_copy(&_godot_string, &other._godot_string);
}
+String::String(String&& other) {
+ godot::api->godot_string_new_copy(&_godot_string, &other._godot_string);
+ godot::api->godot_string_destroy(&_godot_string);
+}
+
String::~String() {
godot::api->godot_string_destroy(&_godot_string);
}