Replace append_utfx with direct String::utfx
This commit is contained in:
@@ -61,9 +61,8 @@ void EngineUpdateLabel::_http_request_completed(int p_result, int p_response_cod
|
||||
|
||||
Array version_array;
|
||||
{
|
||||
String s;
|
||||
const uint8_t *r = p_body.ptr();
|
||||
s.append_utf8((const char *)r, p_body.size());
|
||||
String s = String::utf8((const char *)r, p_body.size());
|
||||
|
||||
Variant result = JSON::parse_string(s);
|
||||
if (result == Variant()) {
|
||||
|
||||
Reference in New Issue
Block a user