mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Removed implementation of JsonBufferAllocated::delete.
				
					
				
			This commit is contained in:
		
				
					committed by
					
						 Benoit Blanchon
						Benoit Blanchon
					
				
			
			
				
	
			
			
			
						parent
						
							476e5aaa86
						
					
				
				
					commit
					5da41edf6a
				
			| @@ -19,7 +19,7 @@ class JsonBufferAllocated { | ||||
|     return jsonBuffer->alloc(n); | ||||
|   } | ||||
|  | ||||
|   void operator delete(void *, JsonBuffer *)throw() {} | ||||
|   void operator delete(void *, JsonBuffer *)throw(); | ||||
| }; | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -18,7 +18,7 @@ namespace Internals { | ||||
| // Used by List<T> and its iterators. | ||||
| template <typename T> | ||||
| struct ListNode : public Internals::JsonBufferAllocated { | ||||
|   ListNode() : next(NULL) {} | ||||
|   ListNode() throw() : next(NULL) {} | ||||
|  | ||||
|   ListNode<T> *next; | ||||
|   T content; | ||||
|   | ||||
| @@ -46,7 +46,7 @@ class JsonArray : public Internals::JsonPrintable<JsonArray>, | ||||
|   // Create an empty JsonArray attached to the specified JsonBuffer. | ||||
|   // You should not call this constructor directly. | ||||
|   // Instead, use JsonBuffer::createArray() or JsonBuffer::parseArray(). | ||||
|   explicit JsonArray(JsonBuffer *buffer) | ||||
|   explicit JsonArray(JsonBuffer *buffer) throw() | ||||
|       : Internals::List<JsonVariant>(buffer) {} | ||||
|  | ||||
|   // Gets the value at the specified index | ||||
|   | ||||
| @@ -45,7 +45,8 @@ class JsonObject : public Internals::JsonPrintable<JsonObject>, | ||||
|   // Create an empty JsonArray attached to the specified JsonBuffer. | ||||
|   // You should not use this constructor directly. | ||||
|   // Instead, use JsonBuffer::createObject() or JsonBuffer.parseObject(). | ||||
|   explicit JsonObject(JsonBuffer* buffer) : Internals::List<JsonPair>(buffer) {} | ||||
|   explicit JsonObject(JsonBuffer* buffer) throw()  | ||||
|     : Internals::List<JsonPair>(buffer) {} | ||||
|  | ||||
|   // Gets or sets the value associated with the specified key. | ||||
|   // | ||||
|   | ||||
		Reference in New Issue
	
	Block a user