summaryrefslogtreecommitdiff
path: root/core/include/fxcrt
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-04-15 10:11:12 -0700
committerTom Sepez <tsepez@chromium.org>2015-04-15 10:11:12 -0700
commitff05471b7bf9fbfeaebb3fb59468228f8cf84c63 (patch)
tree77e1770563fbbfcaa1efec804c07f89359358dac /core/include/fxcrt
parentb48704f27fa425d0c4f5b0040cc11e4087c39016 (diff)
downloadpdfium-ff05471b7bf9fbfeaebb3fb59468228f8cf84c63.tar.xz
Make FX_NEW throw on OOM.
Restores default behavior of new. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1082253003
Diffstat (limited to 'core/include/fxcrt')
-rw-r--r--core/include/fxcrt/fx_memory.h2
1 files changed, 1 insertions, 1 deletions
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