From ff05471b7bf9fbfeaebb3fb59468228f8cf84c63 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 15 Apr 2015 10:11:12 -0700 Subject: Make FX_NEW throw on OOM. Restores default behavior of new. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1082253003 --- core/include/fxcrt/fx_memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/include/fxcrt/fx_memory.h b/core/include/fxcrt/fx_memory.h index 7884d6b11d..4d56736011 100644 --- a/core/include/fxcrt/fx_memory.h +++ b/core/include/fxcrt/fx_memory.h @@ -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 -- cgit v1.2.3