ソースを参照

Created operator.

Created String::operator+=(const wchar_t), that was mark as Todo.
TerraAr 5 年 前
コミット
a1ba843f36
1 ファイル変更1 行追加1 行削除
  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 {