You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Use append_ instead of parse_ for String methods.
This commit is contained in:
@@ -284,7 +284,7 @@ void ExportTemplateManager::_refresh_mirrors_completed(int p_status, int p_code,
|
||||
String response_json;
|
||||
{
|
||||
const uint8_t *r = p_data.ptr();
|
||||
response_json.parse_utf8((const char *)r, p_data.size());
|
||||
response_json.append_utf8((const char *)r, p_data.size());
|
||||
}
|
||||
|
||||
JSON json;
|
||||
@@ -465,7 +465,7 @@ bool ExportTemplateManager::_install_file_selected(const String &p_file, bool p_
|
||||
unzCloseCurrentFile(pkg);
|
||||
|
||||
String data_str;
|
||||
data_str.parse_utf8((const char *)uncomp_data.ptr(), uncomp_data.size());
|
||||
data_str.append_utf8((const char *)uncomp_data.ptr(), uncomp_data.size());
|
||||
data_str = data_str.strip_edges();
|
||||
|
||||
// Version number should be of the form major.minor[.patch].status[.module_config]
|
||||
|
||||
Reference in New Issue
Block a user