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

Unified Diff: core/fxge/ge/fx_ge.cpp

Issue 2032613003: Get rid of NULLs in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: s/NULL/nullptr/ Created 4 years, 7 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
Index: core/fxge/ge/fx_ge.cpp
diff --git a/core/fxge/ge/fx_ge.cpp b/core/fxge/ge/fx_ge.cpp
index 9e45dc74343d75868ac960ded4d3b3228d1c12af..360a4eb41783a686b0b3063e618237bbeffc994f 100644
--- a/core/fxge/ge/fx_ge.cpp
+++ b/core/fxge/ge/fx_ge.cpp
@@ -8,20 +8,20 @@
#include "core/fxge/ge/fx_text_int.h"
-static CFX_GEModule* g_pGEModule = NULL;
+static CFX_GEModule* g_pGEModule = nullptr;
CFX_GEModule::CFX_GEModule(const char** pUserFontPaths) {
- m_pFontCache = NULL;
- m_pFontMgr = NULL;
- m_FTLibrary = NULL;
- m_pCodecModule = NULL;
- m_pPlatformData = NULL;
+ m_pFontCache = nullptr;
+ m_pFontMgr = nullptr;
+ m_FTLibrary = nullptr;
+ m_pCodecModule = nullptr;
+ m_pPlatformData = nullptr;
m_pUserFontPaths = pUserFontPaths;
}
CFX_GEModule::~CFX_GEModule() {
delete m_pFontCache;
- m_pFontCache = NULL;
+ m_pFontCache = nullptr;
delete m_pFontMgr;
- m_pFontMgr = NULL;
+ m_pFontMgr = nullptr;
DestroyPlatform();
}
CFX_GEModule* CFX_GEModule::Get() {
@@ -38,7 +38,7 @@ void CFX_GEModule::Use(CFX_GEModule* pModule) {
}
void CFX_GEModule::Destroy() {
delete g_pGEModule;
- g_pGEModule = NULL;
+ g_pGEModule = nullptr;
}
CFX_FontCache* CFX_GEModule::GetFontCache() {
if (!m_pFontCache) {

Powered by Google App Engine
This is Rietveld 408576698