diff options
author | thestig <thestig@chromium.org> | 2016-06-07 17:53:06 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-07 17:53:06 -0700 |
commit | 1cd352e0a4bc19f96df199b0acfa32a344240d5e (patch) | |
tree | be24d7a4bd135c2ab5568148ab318b7bf648edda /fpdfsdk/include | |
parent | a4fdfc5ed0e8d2e6acc52cc34eac42c6072f0ccc (diff) | |
download | pdfium-1cd352e0a4bc19f96df199b0acfa32a344240d5e.tar.xz |
Get rid of NULLs in fpdfsdk/
Review-Url: https://codereview.chromium.org/2031653003
Diffstat (limited to 'fpdfsdk/include')
-rw-r--r-- | fpdfsdk/include/fsdk_annothandler.h | 4 | ||||
-rw-r--r-- | fpdfsdk/include/fsdk_baseform.h | 2 | ||||
-rw-r--r-- | fpdfsdk/include/fsdk_mgr.h | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/fpdfsdk/include/fsdk_annothandler.h b/fpdfsdk/include/fsdk_annothandler.h index a9c76e2523..b36fe372b2 100644 --- a/fpdfsdk/include/fsdk_annothandler.h +++ b/fpdfsdk/include/fsdk_annothandler.h @@ -142,7 +142,7 @@ class IPDFSDK_AnnotHandler { class CPDFSDK_BFAnnotHandler : public IPDFSDK_AnnotHandler { public: explicit CPDFSDK_BFAnnotHandler(CPDFDoc_Environment* pApp) - : m_pApp(pApp), m_pFormFiller(NULL) {} + : m_pApp(pApp), m_pFormFiller(nullptr) {} ~CPDFSDK_BFAnnotHandler() override {} // IPDFSDK_AnnotHandler @@ -255,7 +255,7 @@ class CPDFSDK_XFAAnnotHandler : public IPDFSDK_AnnotHandler { virtual FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot); virtual CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) { - return NULL; + return nullptr; } virtual CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot, diff --git a/fpdfsdk/include/fsdk_baseform.h b/fpdfsdk/include/fsdk_baseform.h index 5e00e16402..c7a7e742d3 100644 --- a/fpdfsdk/include/fsdk_baseform.h +++ b/fpdfsdk/include/fsdk_baseform.h @@ -281,7 +281,7 @@ class CPDFSDK_InterForm : public IPDF_FormNotify { FX_BOOL OnKeyStrokeCommit(CPDF_FormField* pFormField, const CFX_WideString& csValue); FX_BOOL OnValidate(CPDF_FormField* pFormField, const CFX_WideString& csValue); - void OnCalculate(CPDF_FormField* pFormField = NULL); + void OnCalculate(CPDF_FormField* pFormField = nullptr); CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated); void ResetFieldAppearance(CPDF_FormField* pFormField, diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h index a47f230c92..bf11a23765 100644 --- a/fpdfsdk/include/fsdk_mgr.h +++ b/fpdfsdk/include/fsdk_mgr.h @@ -111,13 +111,13 @@ class CPDFDoc_Environment final { FPDF_PAGE FFI_GetPage(FPDF_DOCUMENT document, int nPageIndex) { if (m_pInfo && m_pInfo->FFI_GetPage) return m_pInfo->FFI_GetPage(m_pInfo, document, nPageIndex); - return NULL; + return nullptr; } FPDF_PAGE FFI_GetCurrentPage(FPDF_DOCUMENT document) { if (m_pInfo && m_pInfo->FFI_GetCurrentPage) return m_pInfo->FFI_GetCurrentPage(m_pInfo, document); - return NULL; + return nullptr; } int FFI_GetRotation(FPDF_PAGE page) { @@ -181,7 +181,7 @@ class CPDFDoc_Environment final { CFX_WideString FFI_GetPlatform() { if (m_pInfo && m_pInfo->FFI_GetPlatform) { - int nRequiredLen = m_pInfo->FFI_GetPlatform(m_pInfo, NULL, 0); + int nRequiredLen = m_pInfo->FFI_GetPlatform(m_pInfo, nullptr, 0); if (nRequiredLen <= 0) return L""; @@ -275,7 +275,7 @@ class CPDFDoc_Environment final { const char* mode) { if (m_pInfo && m_pInfo->FFI_OpenFile) return m_pInfo->FFI_OpenFile(m_pInfo, fileType, wsURL, mode); - return NULL; + return nullptr; } CFX_WideString FFI_GetFilePath(FPDF_FILEHANDLER* pFileHandler) const { @@ -296,7 +296,7 @@ class CPDFDoc_Environment final { return new CFPDF_FileStream(fileHandler); } - return NULL; + return nullptr; } CFX_WideString FFI_PostRequestURL(const FX_WCHAR* wsURL, @@ -361,7 +361,7 @@ class CPDFDoc_Environment final { CFX_WideString FFI_GetLanguage() { if (m_pInfo && m_pInfo->FFI_GetLanguage) { - int nRequiredLen = m_pInfo->FFI_GetLanguage(m_pInfo, NULL, 0); + int nRequiredLen = m_pInfo->FFI_GetLanguage(m_pInfo, nullptr, 0); if (nRequiredLen <= 0) return L""; |