forked from bblanchon/ArduinoJson
Removed std::nothrow because it's not supported in Arduino
This commit is contained in:
@ -54,7 +54,7 @@ class DynamicJsonBuffer : public JsonBuffer {
|
|||||||
|
|
||||||
void* allocInOtherBlocks(size_t bytes) {
|
void* allocInOtherBlocks(size_t bytes) {
|
||||||
if (!_next) {
|
if (!_next) {
|
||||||
_next = new (std::nothrow) DynamicJsonBuffer();
|
_next = new DynamicJsonBuffer();
|
||||||
if (!_next) return NULL;
|
if (!_next) return NULL;
|
||||||
}
|
}
|
||||||
return _next->alloc(bytes);
|
return _next->alloc(bytes);
|
||||||
|
Reference in New Issue
Block a user