Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7cbb846 + 9560cbf commit 81783c6Copy full SHA for 81783c6
src/core/String.cpp
@@ -124,8 +124,8 @@ bool String::operator!=(const String &s) const {
124
}
125
126
String String::operator+(const String &s) const {
127
- String new_string = *this;
128
- new_string._godot_string = godot::api->godot_string_operator_plus(&new_string._godot_string, &s._godot_string);
+ String new_string;
+ new_string._godot_string = godot::api->godot_string_operator_plus(&_godot_string, &s._godot_string);
129
130
return new_string;
131
0 commit comments