1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Use JSON::stringify where possible

This commit is contained in:
Micky
2022-10-11 00:27:23 +02:00
parent 28f642097a
commit fe56c1ff75
5 changed files with 5 additions and 9 deletions

View File

@@ -255,8 +255,7 @@ Error EditorBuildProfile::save_to_file(const String &p_path) {
Ref<FileAccess> f = FileAccess::open(p_path, FileAccess::WRITE);
ERR_FAIL_COND_V_MSG(f.is_null(), ERR_CANT_CREATE, "Cannot create file '" + p_path + "'.");
JSON json;
String text = json.stringify(data, "\t");
String text = JSON::stringify(data, "\t");
f->store_string(text);
return OK;
}