summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorMicky <micheledevita2@gmail.com>2022-10-11 00:27:23 +0200
committerMicky <micheledevita2@gmail.com>2022-10-11 00:27:23 +0200
commitfe56c1ff757d34747e6db07917b707534f09fe3a (patch)
tree3bcfae3e4ea6ece4476e3438646b905cc28fdfa1 /core/variant
parent28f642097a7986867e4fb7d697764efb4db753bf (diff)
Use `JSON::stringify` where possible
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant.cpp3
1 files changed, 1 insertions, 2 deletions
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 {