Replace append_utfx with direct String::utfx
This commit is contained in:
parent
ba3482926d
commit
23129a66ed
30 changed files with 49 additions and 123 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue