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/javascript/Field.cpp | |
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/javascript/Field.cpp')
-rw-r--r-- | fpdfsdk/javascript/Field.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp index 5808982b43..43bc89e26e 100644 --- a/fpdfsdk/javascript/Field.cpp +++ b/fpdfsdk/javascript/Field.cpp @@ -122,12 +122,12 @@ void CJS_Field::InitInstance(IJS_Runtime* pIRuntime) { Field::Field(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject), - m_pJSDoc(NULL), - m_pDocument(NULL), + m_pJSDoc(nullptr), + m_pDocument(nullptr), m_nFormControlIndex(-1), m_bCanSet(FALSE), m_bDelay(FALSE), - m_isolate(NULL) {} + m_isolate(nullptr) {} Field::~Field() {} @@ -262,16 +262,16 @@ void Field::UpdateFormControl(CPDFSDK_Document* pDocument, if (bFormated) pWidget->ResetAppearance(sValue.c_str(), FALSE); else - pWidget->ResetAppearance(NULL, FALSE); + pWidget->ResetAppearance(nullptr, FALSE); } else { - pWidget->ResetAppearance(NULL, FALSE); + pWidget->ResetAppearance(nullptr, FALSE); } } if (bRefresh) { CPDFSDK_InterForm* pInterForm = pWidget->GetInterForm(); CPDFSDK_Document* pDoc = pInterForm->GetDocument(); - pDoc->UpdateAllViews(NULL, pWidget); + pDoc->UpdateAllViews(nullptr, pWidget); } } @@ -299,7 +299,7 @@ FX_BOOL Field::ValueIsOccur(CPDF_FormField* pFormField, CPDF_FormControl* Field::GetSmartFieldControl(CPDF_FormField* pFormField) { if (!pFormField->CountControls() || m_nFormControlIndex >= pFormField->CountControls()) - return NULL; + return nullptr; if (m_nFormControlIndex < 0) return pFormField->GetControl(0); @@ -2956,7 +2956,7 @@ FX_BOOL Field::buttonGetIcon(IJS_Context* cc, CJS_Icon* pJS_Icon = (CJS_Icon*)FXJS_GetPrivate(pRuntime->GetIsolate(), pObj); Icon* pIcon = (Icon*)pJS_Icon->GetEmbedObject(); - CPDF_Stream* pIconStream = NULL; + CPDF_Stream* pIconStream = nullptr; if (nface == 0) pIconStream = pFormControl->GetNormalIcon(); else if (nface == 1) @@ -3254,7 +3254,7 @@ FX_BOOL Field::setFocus(IJS_Context* cc, CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)m_pDocument->GetInterForm(); - CPDFSDK_Widget* pWidget = NULL; + CPDFSDK_Widget* pWidget = nullptr; if (nCount == 1) { pWidget = pInterForm->GetWidget(pFormField->GetControl(0)); } else { @@ -3343,7 +3343,7 @@ FX_BOOL Field::source(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError) { if (vp.IsGetting()) { - vp << (CJS_Object*)NULL; + vp << (CJS_Object*)nullptr; } return TRUE; |