diff options
author | DhruvMaroo <dhruvmaru007@gmail.com> | 2021-06-01 23:16:09 +0530 |
---|---|---|
committer | DhruvMaroo <dhruvmaru007@gmail.com> | 2021-06-01 23:16:09 +0530 |
commit | 7a1890345b2658b422823bce889f88cc7dbb76d5 (patch) | |
tree | cfad1eb33314c73ee8c066f12b1c2828e3efac97 /src/core/String.cpp | |
parent | 67e2c6145c8650defb5af6ff88d805dc07fe3975 (diff) | |
download | redot-cpp-7a1890345b2658b422823bce889f88cc7dbb76d5.tar.gz |
edited according to clang-format
Diffstat (limited to 'src/core/String.cpp')
-rw-r--r-- | src/core/String.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/String.cpp b/src/core/String.cpp index ac72f06..7564572 100644 --- a/src/core/String.cpp +++ b/src/core/String.cpp @@ -73,7 +73,7 @@ String::String(const String &other) { godot::api->godot_string_new_copy(&_godot_string, &other._godot_string); } -String::String(String&& other) { +String::String(String &&other) { godot::api->godot_string_new_copy(&_godot_string, &other._godot_string); } @@ -98,7 +98,7 @@ void String::operator=(const String &s) { godot::api->godot_string_new_copy(&_godot_string, &s._godot_string); } -void String::operator=(String&& s) { +void String::operator=(String &&s) { godot::api->godot_string_destroy(&_godot_string); godot::api->godot_string_new_copy(&_godot_string, &s._godot_string); } |