summaryrefslogtreecommitdiff
path: root/core/src/fxge/ge/fx_ge_linux.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-04-16 08:31:30 -0700
committerTom Sepez <tsepez@chromium.org>2015-04-16 08:31:30 -0700
commit026623249c78ba305c874cc093a035ef5a4cd1b4 (patch)
tree5540055c26b89a0747b0ebe2193732e82d5872a7 /core/src/fxge/ge/fx_ge_linux.cpp
parent6c0d01b0244af7d8f9a896e626c7a7d5476a7373 (diff)
downloadpdfium-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_linux.cpp')
-rw-r--r--core/src/fxge/ge/fx_ge_linux.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/fxge/ge/fx_ge_linux.cpp b/core/src/fxge/ge/fx_ge_linux.cpp
index ad0a70ab1f..b9cfc8ef54 100644
--- a/core/src/fxge/ge/fx_ge_linux.cpp
+++ b/core/src/fxge/ge/fx_ge_linux.cpp
@@ -208,10 +208,7 @@ void* CFX_LinuxFontInfo::FindFont(int weight, FX_BOOL bItalic, int charset, int
}
IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault()
{
- CFX_LinuxFontInfo* pInfo = FX_NEW CFX_LinuxFontInfo;
- if (!pInfo) {
- return NULL;
- }
+ CFX_LinuxFontInfo* pInfo = new CFX_LinuxFontInfo;
if (!pInfo->ParseFontCfg()) {
pInfo->AddPath("/usr/share/fonts");
pInfo->AddPath("/usr/share/X11/fonts/Type1");