From fe56c1ff757d34747e6db07917b707534f09fe3a Mon Sep 17 00:00:00 2001 From: Micky Date: Tue, 11 Oct 2022 00:27:23 +0200 Subject: Use `JSON::stringify` where possible --- core/variant/variant.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/variant') diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp index 4eae23b0fb..ace6a525d8 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -1932,8 +1932,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 { -- cgit v1.2.3