浏览代码

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

Benoit Blanchon 11 年之前
父节点
当前提交
2932c4ee43
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/ArduinoJson/DynamicJsonBuffer.hpp

+ 1 - 1
include/ArduinoJson/DynamicJsonBuffer.hpp

@@ -54,7 +54,7 @@ class DynamicJsonBuffer : public JsonBuffer {
 
   void* allocInOtherBlocks(size_t bytes) {
     if (!_next) {
-      _next = new (std::nothrow) DynamicJsonBuffer();
+      _next = new DynamicJsonBuffer();
       if (!_next) return NULL;
     }
     return _next->alloc(bytes);