mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Replace ARDUINOJSON_NAMESPACE with an inline namespace (#1820)
				
					
				
			This commit is contained in:
		| @@ -7,12 +7,16 @@ | ||||
| #include <ArduinoJson/Array/JsonArray.hpp> | ||||
| #include <ArduinoJson/Object/JsonObject.hpp> | ||||
|  | ||||
| namespace ARDUINOJSON_NAMESPACE { | ||||
| ARDUINOJSON_BEGIN_PUBLIC_NAMESPACE | ||||
|  | ||||
| inline JsonObject JsonArray::createNestedObject() const { | ||||
|   return add().to<JsonObject>(); | ||||
| } | ||||
|  | ||||
| ARDUINOJSON_END_PUBLIC_NAMESPACE | ||||
|  | ||||
| ARDUINOJSON_BEGIN_PRIVATE_NAMESPACE | ||||
|  | ||||
| template <typename TDerived> | ||||
| inline JsonArray VariantRefBase<TDerived>::createNestedArray() const { | ||||
|   return add().template to<JsonArray>(); | ||||
| @@ -29,4 +33,4 @@ inline ElementProxy<TDerived> VariantRefBase<TDerived>::operator[]( | ||||
|   return ElementProxy<TDerived>(derived(), index); | ||||
| } | ||||
|  | ||||
| }  // namespace ARDUINOJSON_NAMESPACE | ||||
| ARDUINOJSON_END_PRIVATE_NAMESPACE | ||||
|   | ||||
		Reference in New Issue
	
	Block a user