Replace append_utfx with direct String::utfx

This commit is contained in:
Kiro
2025-03-30 19:56:38 +02:00
parent ba3482926d
commit 23129a66ed
30 changed files with 49 additions and 123 deletions

View File

@@ -383,9 +383,7 @@ String StreamPeer::get_utf8_string(int p_bytes) {
err = get_data(buf.ptrw(), p_bytes);
ERR_FAIL_COND_V(err != OK, String());
String ret;
ret.append_utf8((const char *)buf.ptr(), buf.size());
return ret;
return String::utf8((const char *)buf.ptr(), buf.size());
}
Variant StreamPeer::get_var(bool p_allow_objects) {