From 7a1890345b2658b422823bce889f88cc7dbb76d5 Mon Sep 17 00:00:00 2001 From: DhruvMaroo Date: Tue, 1 Jun 2021 23:16:09 +0530 Subject: [PATCH] edited according to clang-format --- include/core/String.hpp | 4 ++-- src/core/String.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/core/String.hpp b/include/core/String.hpp index fa3944d..2dea845 100644 --- a/include/core/String.hpp +++ b/include/core/String.hpp @@ -40,7 +40,7 @@ public: String(const wchar_t *contents); String(const wchar_t c); String(const String &other); - String(String&& other); + String(String &&other); ~String(); @@ -56,7 +56,7 @@ public: wchar_t operator[](const int idx) const; 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; String operator+(const String &s) const; 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); }