mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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
|
|
@ -1214,14 +1214,7 @@ void EditorAssetLibrary::_api_request(const String &p_request, RequestType p_req
|
|||
}
|
||||
|
||||
void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data) {
|
||||
String str;
|
||||
|
||||
{
|
||||
int datalen = p_data.size();
|
||||
const uint8_t *r = p_data.ptr();
|
||||
str.append_utf8((const char *)r, datalen);
|
||||
}
|
||||
|
||||
String str = String::utf8((const char *)p_data.ptr(), (int)p_data.size());
|
||||
bool error_abort = true;
|
||||
|
||||
switch (p_status) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue