diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-11 09:27:53 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-11 09:27:53 +0200 |
commit | 6d9d220d64cc87a9b2f59292eafafe6834dfdfc3 (patch) | |
tree | a6b4eaa695178a808b10e81b6c9b4b7fe54f68eb /core/variant | |
parent | 422c3989628e4d60046385865674eca633d65be7 (diff) | |
parent | fe56c1ff757d34747e6db07917b707534f09fe3a (diff) |
Merge pull request #67224 from Mickeon/jason
Use `JSON::stringify` where possible
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp index c14df58281..b4528e67d1 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -1853,8 +1853,7 @@ String Variant::stringify(int recursion_count) const { } String Variant::to_json_string() const { - JSON json; - return json.stringify(*this); + return JSON::stringify(*this); } Variant::operator Vector2() const { |