Explorar o código

Created operator.

Created String::operator+=(const wchar_t), that was mark as Todo.
TerraAr %!s(int64=5) %!d(string=hai) anos
pai
achega
a1ba843f36
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/String.cpp

+ 1 - 1
src/core/String.cpp

@@ -135,7 +135,7 @@ void String::operator+=(const String &s) {
 }
 
 void String::operator+=(const wchar_t c) {
-	// @Todo
+	_godot_string = godot::api->godot_string_operator_plus(&_godot_string, &(String(c)._godot_string));
 }
 
 bool String::operator<(const String &s) const {