Rename VariantConstRef to JsonVariantConst

This commit is contained in:
Benoit Blanchon
2022-12-19 12:05:08 +01:00
parent b8eff868e6
commit ef8ed28aec
29 changed files with 134 additions and 135 deletions

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>();
}
};