From 1cd352e0a4bc19f96df199b0acfa32a344240d5e Mon Sep 17 00:00:00 2001 From: thestig Date: Tue, 7 Jun 2016 17:53:06 -0700 Subject: Get rid of NULLs in fpdfsdk/ Review-Url: https://codereview.chromium.org/2031653003 --- fpdfsdk/pdfwindow/PWL_EditCtrl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fpdfsdk/pdfwindow/PWL_EditCtrl.cpp') diff --git a/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp b/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp index aa653929bd..e74a6d8b32 100644 --- a/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp +++ b/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp @@ -22,9 +22,9 @@ CPWL_EditCtrl::CPWL_EditCtrl() : m_pEdit(IFX_Edit::NewEdit()), - m_pEditCaret(NULL), + m_pEditCaret(nullptr), m_bMouseDown(FALSE), - m_pEditNotify(NULL), + m_pEditNotify(nullptr), m_nCharSet(DEFAULT_CHARSET), m_nCodePage(0) {} @@ -450,7 +450,7 @@ CPDF_Font* CPWL_EditCtrl::GetCaretFont() const { if (IPVT_FontMap* pFontMap = GetFontMap()) return pFontMap->GetPDFFont(nFontIndex); - return NULL; + return nullptr; } FX_FLOAT CPWL_EditCtrl::GetCaretFontSize() const { @@ -563,7 +563,7 @@ void CPWL_EditCtrl::IOnSetCaret(FX_BOOL bVisible, cInfo.ptHead = ptHead; cInfo.ptFoot = ptFoot; - OnNotify(this, PNM_SETCARETINFO, (intptr_t)&cInfo, (intptr_t)NULL); + OnNotify(this, PNM_SETCARETINFO, (intptr_t)&cInfo, (intptr_t) nullptr); } void CPWL_EditCtrl::IOnCaretChange(const CPVT_SecProps& secProps, -- cgit v1.2.3