Updated operator

I've updated the operator that I had created to use the private constructor of the class.
pull/441/head
TerraAr 2020-08-15 15:10:16 -03:00 committed by GitHub
parent 5e656923cf
commit 7d347edb12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ void String::operator+=(const String &s) {
}
void String::operator+=(const wchar_t c) {
String _to_be_added = c;
_godot_string = godot::api->godot_string_operator_plus(&_godot_string, &_to_be_added._godot_string);
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 {