Rename VariantConstRef to JsonVariantConst

This commit is contained in:
Benoit Blanchon committed 2022-12-19 14:41:43 +01:00
1 parent b8eff868e6
commit ef8ed28aec
29 files changed
+134 -135

No files matched your search

+2 -2
View File
@@ -96,11 +96,11 @@ struct Converter<Complex> {
dst["imag"] = src.imag();
}
static Complex fromJson(VariantConstRef src) {
static Complex fromJson(JsonVariantConst src) {
return Complex(src["real"], src["imag"]);
}
static bool checkJson(VariantConstRef src) {
static bool checkJson(JsonVariantConst src) {
return src["real"].is<double>() && src["imag"].is<double>();
}
};