Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: core/src/fxge/android/fx_android_imp.cpp

Issue 1084613006: Fix all remaining instances of FX_NEW. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: std::min Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fxge/android/fpf_skiamodule.cpp ('k') | core/src/reflow/autoreflow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxge/android/fx_android_imp.cpp
diff --git a/core/src/fxge/android/fx_android_imp.cpp b/core/src/fxge/android/fx_android_imp.cpp
index 528877ef89451d76642642ecbb3fe28cb448eb51..a1631ab8f04048fca924a55a2e9161e98f3a87c2 100644
--- a/core/src/fxge/android/fx_android_imp.cpp
+++ b/core/src/fxge/android/fx_android_imp.cpp
@@ -14,10 +14,7 @@ void CFX_GEModule::InitPlatform()
}
IFPF_FontMgr *pFontMgr = pDeviceModule->GetFontMgr();
if (pFontMgr) {
- CFX_AndroidFontInfo *pFontInfo = FX_NEW CFX_AndroidFontInfo;
- if (!pFontInfo) {
- return;
- }
+ CFX_AndroidFontInfo *pFontInfo = new CFX_AndroidFontInfo;
pFontInfo->Init(pFontMgr);
m_pFontMgr->SetSystemFontInfo(pFontInfo);
}
« no previous file with comments | « core/src/fxge/android/fpf_skiamodule.cpp ('k') | core/src/reflow/autoreflow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698