diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-16 09:13:02 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-16 09:13:02 -0700 |
commit | 3f754d483e257f0d373be28a64b58620b4e0953f (patch) | |
tree | 51dbd10bcfc25572ab5a6a70eba2eab0f6bf3131 /core/src/fxge/apple/fx_mac_imp.cpp | |
parent | 026623249c78ba305c874cc093a035ef5a4cd1b4 (diff) | |
download | pdfium-3f754d483e257f0d373be28a64b58620b4e0953f.tar.xz |
Remove checks in fxge/{apple,win32,skia,dib} now that FX_NEW cant return 0
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1062863006
Diffstat (limited to 'core/src/fxge/apple/fx_mac_imp.cpp')
-rw-r--r-- | core/src/fxge/apple/fx_mac_imp.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/src/fxge/apple/fx_mac_imp.cpp b/core/src/fxge/apple/fx_mac_imp.cpp index 5acedc0bd9..75489ea2c3 100644 --- a/core/src/fxge/apple/fx_mac_imp.cpp +++ b/core/src/fxge/apple/fx_mac_imp.cpp @@ -87,10 +87,7 @@ void* CFX_MacFontInfo::MapFont(int weight, FX_BOOL bItalic, int charset, int pit } IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault() { - CFX_MacFontInfo* pInfo = FX_NEW CFX_MacFontInfo; - if (!pInfo) { - return NULL; - } + CFX_MacFontInfo* pInfo = new CFX_MacFontInfo; pInfo->AddPath("~/Library/Fonts"); pInfo->AddPath("/Library/Fonts"); pInfo->AddPath("/System/Library/Fonts"); @@ -98,7 +95,7 @@ IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault() } void CFX_GEModule::InitPlatform() { - m_pPlatformData = FX_NEW CApplePlatform; + m_pPlatformData = new CApplePlatform; m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault()); } void CFX_GEModule::DestroyPlatform() |