mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added StaticJsonDocument::garbageCollect()
				
					
				
			This commit is contained in:
		| @@ -120,7 +120,7 @@ class BasicJsonDocument : AllocatorOwner<TAllocator>, public JsonDocument { | ||||
|  | ||||
|   bool garbageCollect() { | ||||
|     // make a temporary clone and move assign | ||||
|     BasicJsonDocument<TAllocator> tmp(*this); | ||||
|     BasicJsonDocument tmp(*this); | ||||
|     if (!tmp.capacity()) | ||||
|       return false; | ||||
|     tmp.set(*this); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user