Chromium Code Reviews

Unified Diff: xfa/fgas/font/fgas_font.h

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « xfa/fgas/crt/fgas_utils.cpp ('k') | xfa/fgas/font/fgas_fontutils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fgas/font/fgas_font.h
diff --git a/xfa/fgas/font/fgas_font.h b/xfa/fgas/font/fgas_font.h
index 5d3a44092da52b5d2639003312951e3f31545f6d..e6f6880628c86a840348e388903052d64821eb40 100644
--- a/xfa/fgas/font/fgas_font.h
+++ b/xfa/fgas/font/fgas_font.h
@@ -153,26 +153,26 @@ class IFGAS_FontMgr {
virtual IFGAS_Font* GetDefFontByCodePage(
uint16_t wCodePage,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* GetDefFontByCharset(
uint8_t nCharset,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* GetDefFontByUnicode(
FX_WCHAR wUnicode,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* GetDefFontByLanguage(
uint16_t wLanguage,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* LoadFont(const FX_WCHAR* pszFontFamily,
uint32_t dwFontStyles,
uint16_t wCodePage = 0xFFFF) = 0;
virtual IFGAS_Font* LoadFont(const uint8_t* pBuffer, int32_t iLength) = 0;
virtual IFGAS_Font* LoadFont(const FX_WCHAR* pszFileName) = 0;
virtual IFGAS_Font* LoadFont(IFX_Stream* pFontStream,
- const FX_WCHAR* pszFontAlias = NULL,
+ const FX_WCHAR* pszFontAlias = nullptr,
uint32_t dwFontStyles = 0,
uint16_t wCodePage = 0,
FX_BOOL bSaveStream = FALSE) = 0;
@@ -193,23 +193,23 @@ class IFGAS_FontMgr {
virtual IFGAS_Font* GetDefFontByCodePage(
uint16_t wCodePage,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* GetDefFontByCharset(
uint8_t nCharset,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* GetDefFontByUnicode(
FX_WCHAR wUnicode,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* GetDefFontByLanguage(
uint16_t wLanguage,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* GetFontByCodePage(
uint16_t wCodePage,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
inline IFGAS_Font* LoadFont(const FX_WCHAR* pszFontFamily,
uint32_t dwFontStyles,
uint16_t wCodePage) {
@@ -218,25 +218,25 @@ class IFGAS_FontMgr {
virtual IFGAS_Font* GetFontByCharset(
uint8_t nCharset,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* GetFontByUnicode(
FX_WCHAR wUnicode,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* GetFontByLanguage(
uint16_t wLanguage,
uint32_t dwFontStyles,
- const FX_WCHAR* pszFontFamily = NULL) = 0;
+ const FX_WCHAR* pszFontFamily = nullptr) = 0;
virtual IFGAS_Font* LoadFont(const uint8_t* pBuffer,
int32_t iLength,
int32_t iFaceIndex,
- int32_t* pFaceCount = NULL) = 0;
+ int32_t* pFaceCount = nullptr) = 0;
virtual IFGAS_Font* LoadFont(const FX_WCHAR* pszFileName,
int32_t iFaceIndex,
- int32_t* pFaceCount = NULL) = 0;
+ int32_t* pFaceCount = nullptr) = 0;
virtual IFGAS_Font* LoadFont(IFX_Stream* pFontStream,
int32_t iFaceIndex,
- int32_t* pFaceCount = NULL,
+ int32_t* pFaceCount = nullptr,
FX_BOOL bSaveStream = FALSE) = 0;
virtual void ClearFontCache() = 0;
« no previous file with comments | « xfa/fgas/crt/fgas_utils.cpp ('k') | xfa/fgas/font/fgas_fontutils.cpp » ('j') | no next file with comments »

Powered by Google App Engine