mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 00:32:37 +01:00 
			
		
		
		
	Rename VariantRef to JsonVariant
				
					
				
			This commit is contained in:
		| @@ -91,7 +91,7 @@ class Complex { | ||||
| namespace ARDUINOJSON_NAMESPACE { | ||||
| template <> | ||||
| struct Converter<Complex> { | ||||
|   static void toJson(const Complex& src, VariantRef dst) { | ||||
|   static void toJson(const Complex& src, JsonVariant dst) { | ||||
|     dst["real"] = src.real(); | ||||
|     dst["imag"] = src.imag(); | ||||
|   } | ||||
|   | ||||
| @@ -181,7 +181,7 @@ TEST_CASE("Polyfills/type_traits") { | ||||
|     CHECK((is_convertible<DeserializationError, JsonVariantConst>::value == | ||||
|            false)); | ||||
|     CHECK((is_convertible<JsonPair, JsonVariantConst>::value == false)); | ||||
|     CHECK((is_convertible<VariantRef, JsonVariantConst>::value == true)); | ||||
|     CHECK((is_convertible<JsonVariant, JsonVariantConst>::value == true)); | ||||
|     CHECK((is_convertible<JsonVariantConst, JsonVariantConst>::value == true)); | ||||
|     CHECK((is_convertible<JsonArray, JsonVariantConst>::value == true)); | ||||
|     CHECK((is_convertible<ElementProxy<JsonArray>, JsonVariantConst>::value == | ||||
|   | ||||
		Reference in New Issue
	
	Block a user