diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-01 22:22:51 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-01 22:22:51 -0700 |
commit | 78b2a931e4e4ff4dc667bc358560e896601c2f50 (patch) | |
tree | 1e62f872065083c0bff0efd4fcf06e3c3f9adefc /core/src/fxcrt/fx_basic_util.cpp | |
parent | 2852ddc187af249f48b70cc7d22dcaf83fcd9286 (diff) | |
download | pdfium-78b2a931e4e4ff4dc667bc358560e896601c2f50.tar.xz |
XFA: Remove checks in fxcrt now that new can't return 0.
This is a manual merge.
Original review: https://codereview.chromium.org/1052553006
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1384643002 .
Diffstat (limited to 'core/src/fxcrt/fx_basic_util.cpp')
-rw-r--r-- | core/src/fxcrt/fx_basic_util.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/src/fxcrt/fx_basic_util.cpp b/core/src/fxcrt/fx_basic_util.cpp index 447e169a98..46a0dec1e5 100644 --- a/core/src/fxcrt/fx_basic_util.cpp +++ b/core/src/fxcrt/fx_basic_util.cpp @@ -206,9 +206,6 @@ void* FX_OpenFolder(const FX_CHAR* path) { #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ #ifndef _WIN32_WCE CFindFileDataA* pData = new CFindFileDataA; - if (!pData) { - return NULL; - } #ifdef _FX_WINAPI_PARTITION_DESKTOP_ pData->m_Handle = FindFirstFileA(CFX_ByteString(path) + "/*.*", &pData->m_FindData); @@ -219,9 +216,6 @@ void* FX_OpenFolder(const FX_CHAR* path) { #endif #else CFindFileDataW* pData = new CFindFileDataW; - if (!pData) { - return NULL; - } pData->m_Handle = FindFirstFileW(CFX_WideString::FromLocal(path) + L"/*.*", &pData->m_FindData); #endif @@ -239,9 +233,6 @@ void* FX_OpenFolder(const FX_CHAR* path) { void* FX_OpenFolder(const FX_WCHAR* path) { #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ CFindFileDataW* pData = new CFindFileDataW; - if (!pData) { - return NULL; - } #ifdef _FX_WINAPI_PARTITION_DESKTOP_ pData->m_Handle = FindFirstFileW((CFX_WideString(path) + L"/*.*").c_str(), &pData->m_FindData); |