edited according to clang-format

pull/567/head
DhruvMaroo 2021-06-01 23:16:09 +05:30
parent 67e2c6145c
commit 7a1890345b
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ public:
String(const wchar_t *contents); String(const wchar_t *contents);
String(const wchar_t c); String(const wchar_t c);
String(const String &other); String(const String &other);
String(String&& other); String(String &&other);
~String(); ~String();
@ -56,7 +56,7 @@ public:
wchar_t operator[](const int idx) const; wchar_t operator[](const int idx) const;
void operator=(const String &s); void operator=(const String &s);
void operator=(String&& s); void operator=(String &&s);
bool operator==(const String &s) const; bool operator==(const String &s) const;
bool operator!=(const String &s) const; bool operator!=(const String &s) const;
String operator+(const String &s) const; String operator+(const String &s) const;

View File

@ -73,7 +73,7 @@ String::String(const String &other) {
godot::api->godot_string_new_copy(&_godot_string, &other._godot_string); 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); 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); 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_destroy(&_godot_string);
godot::api->godot_string_new_copy(&_godot_string, &s._godot_string); godot::api->godot_string_new_copy(&_godot_string, &s._godot_string);
} }