Преглед изворни кода

Merge pull request #441 from TerraAr/master

Create an operator
Marc пре 5 година
родитељ
комит
a3fe496ad6
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/core/String.cpp

+ 2 - 1
src/core/String.cpp

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