summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-04-15 10:30:05 -0700
committerTom Sepez <tsepez@chromium.org>2015-04-15 10:30:05 -0700
commita76c52e7327cd9ea19598fce640b6c841951b6dd (patch)
tree32bf86f3da7900a9332c9b0d9bdabb3c56d94aed /core
parent35d0c9a7a442cf1305913fb2de2c6f99842ea586 (diff)
downloadpdfium-a76c52e7327cd9ea19598fce640b6c841951b6dd.tar.xz
Merge to XFA: Make FX_NEW throw on OOM.
Original Review URL: https://codereview.chromium.org/1082253003 TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1061843005
Diffstat (limited to 'core')
-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