diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-16 08:31:30 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-16 08:31:30 -0700 |
commit | 026623249c78ba305c874cc093a035ef5a4cd1b4 (patch) | |
tree | 5540055c26b89a0747b0ebe2193732e82d5872a7 /core/src/fxge/ge/fx_ge.cpp | |
parent | 6c0d01b0244af7d8f9a896e626c7a7d5476a7373 (diff) | |
download | pdfium-026623249c78ba305c874cc093a035ef5a4cd1b4.tar.xz |
Remove checks in fxge/ge now that FX_NEW can't return 0.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1081443004
Diffstat (limited to 'core/src/fxge/ge/fx_ge.cpp')
-rw-r--r-- | core/src/fxge/ge/fx_ge.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/src/fxge/ge/fx_ge.cpp b/core/src/fxge/ge/fx_ge.cpp index d044d721e6..755aad565e 100644 --- a/core/src/fxge/ge/fx_ge.cpp +++ b/core/src/fxge/ge/fx_ge.cpp @@ -33,11 +33,8 @@ CFX_GEModule* CFX_GEModule::Get() } void CFX_GEModule::Create() { - g_pGEModule = FX_NEW CFX_GEModule; - if (!g_pGEModule) { - return; - } - g_pGEModule->m_pFontMgr = FX_NEW CFX_FontMgr; + g_pGEModule = new CFX_GEModule; + g_pGEModule->m_pFontMgr = new CFX_FontMgr; g_pGEModule->InitPlatform(); g_pGEModule->SetTextGamma(2.2f); } @@ -55,7 +52,7 @@ void CFX_GEModule::Destroy() CFX_FontCache* CFX_GEModule::GetFontCache() { if (m_pFontCache == NULL) { - m_pFontCache = FX_NEW CFX_FontCache(); + m_pFontCache = new CFX_FontCache(); } return m_pFontCache; } |