Merge to XFA: Make FX_NEW throw on OOM.
authorTom Sepez <tsepez@chromium.org>
Wed, 15 Apr 2015 17:30:05 +0000 (10:30 -0700)
committerTom Sepez <tsepez@chromium.org>
Wed, 15 Apr 2015 17:30:05 +0000 (10:30 -0700)
Original Review URL: https://codereview.chromium.org/1082253003
TBR=thestig@chromium.org

Review URL: https://codereview.chromium.org/1061843005

core/include/fxcrt/fx_memory.h

index 7884d6b..4d56736 100644 (file)
@@ -24,7 +24,7 @@ void  FXMEM_DefaultFree(void* pointer, int flags);
 #ifdef __cplusplus
 }
 
-#define FX_NEW new(std::nothrow)
+#define FX_NEW new
 #define FX_NEW_VECTOR(Pointer, Class, Count) (Pointer = FX_NEW Class[Count])
 #define FX_DELETE_VECTOR(Pointer, Class, Count) delete[] Pointer