Merge pull request #104810 from kiroxas/utf8_cleanup

Replace `append_utfx` with direct `String::utfx`
This commit is contained in:
Thaddeus Crews 2025-03-31 12:03:44 -05:00
commit 64f80ca0e9
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
30 changed files with 49 additions and 123 deletions

View file

@ -774,8 +774,7 @@ Error ProjectSettings::_load_settings_binary(const String &p_path) {
cs.resize(slen + 1);
cs[slen] = 0;
f->get_buffer((uint8_t *)cs.ptr(), slen);
String key;
key.append_utf8(cs.ptr(), slen);
String key = String::utf8(cs.ptr(), slen);
uint32_t vlen = f->get_32();
Vector<uint8_t> d;