summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-11 09:27:53 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-11 09:27:53 +0200
commit6d9d220d64cc87a9b2f59292eafafe6834dfdfc3 (patch)
treea6b4eaa695178a808b10e81b6c9b4b7fe54f68eb /modules
parent422c3989628e4d60046385865674eca633d65be7 (diff)
parentfe56c1ff757d34747e6db07917b707534f09fe3a (diff)
Merge pull request #67224 from Mickeon/jason
Use `JSON::stringify` where possible
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/class_db_api_json.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/mono/class_db_api_json.cpp b/modules/mono/class_db_api_json.cpp
index c4547b4323..1f4b085bfb 100644
--- a/modules/mono/class_db_api_json.cpp
+++ b/modules/mono/class_db_api_json.cpp
@@ -227,8 +227,7 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
Ref<FileAccess> f = FileAccess::open(p_output_file, FileAccess::WRITE);
ERR_FAIL_COND_MSG(f.is_null(), "Cannot open file '" + p_output_file + "'.");
- JSON json;
- f->store_string(json.stringify(classes_dict, "\t"));
+ f->store_string(JSON::stringify(classes_dict, "\t"));
print_line(String() + "ClassDB API JSON written to: " + ProjectSettings::get_singleton()->globalize_path(p_output_file));
}