mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Changed the array subscript to automatically add missing elements
This commit is contained in:
		| @@ -129,11 +129,14 @@ class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >, | ||||
|     return getOrAddUpstreamMember().addElement(); | ||||
|   } | ||||
|  | ||||
|   // getElement(size_t) const | ||||
|   FORCE_INLINE VariantRef getElement(size_t index) const { | ||||
|     return getUpstreamMember().getElement(index); | ||||
|   } | ||||
|  | ||||
|   FORCE_INLINE VariantRef getOrAddElement(size_t index) const { | ||||
|     return getOrAddUpstreamMember().getOrAddElement(index); | ||||
|   } | ||||
|  | ||||
|   // getMember(char*) const | ||||
|   // getMember(const char*) const | ||||
|   // getMember(const __FlashStringHelper*) const | ||||
|   | ||||
		Reference in New Issue
	
	Block a user