Removed std::nothrow because it's not supported in Arduino

This commit is contained in:
Benoit Blanchon
2014-12-21 10:46:32 +01:00
parent e8c127a894
commit 2932c4ee43

View File

@ -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);