Use append_ instead of parse_ for String methods.

This commit is contained in:
Lukas Tenbrink
2025-03-24 12:25:48 +01:00
parent 594d64ec24
commit ffa6ef220b
62 changed files with 245 additions and 274 deletions

View File

@ -384,7 +384,7 @@ String StreamPeer::get_utf8_string(int p_bytes) {
ERR_FAIL_COND_V(err != OK, String());
String ret;
ret.parse_utf8((const char *)buf.ptr(), buf.size());
ret.append_utf8((const char *)buf.ptr(), buf.size());
return ret;
}