From 4997b22f84307521a62838f874928bf56cd3423c Mon Sep 17 00:00:00 2001 From: thestig Date: Tue, 7 Jun 2016 10:46:22 -0700 Subject: Get rid of NULLs in core/ Review-Url: https://codereview.chromium.org/2032613003 --- core/fpdfdoc/doc_action.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/fpdfdoc/doc_action.cpp') diff --git a/core/fpdfdoc/doc_action.cpp b/core/fpdfdoc/doc_action.cpp index e646df2b4c..c512d1afa9 100644 --- a/core/fpdfdoc/doc_action.cpp +++ b/core/fpdfdoc/doc_action.cpp @@ -109,7 +109,7 @@ size_t CPDF_ActionFields::GetFieldsCount() const { return 0; } CFX_ByteString csType = pDict->GetStringBy("S"); - CPDF_Object* pFields = NULL; + CPDF_Object* pFields = nullptr; if (csType == "Hide") { pFields = pDict->GetDirectObjectBy("T"); } else { @@ -159,23 +159,23 @@ std::vector CPDF_ActionFields::GetAllFields() const { CPDF_Object* CPDF_ActionFields::GetField(size_t iIndex) const { if (!m_pAction) { - return NULL; + return nullptr; } CPDF_Dictionary* pDict = m_pAction->GetDict(); if (!pDict) { - return NULL; + return nullptr; } CFX_ByteString csType = pDict->GetStringBy("S"); - CPDF_Object* pFields = NULL; + CPDF_Object* pFields = nullptr; if (csType == "Hide") { pFields = pDict->GetDirectObjectBy("T"); } else { pFields = pDict->GetArrayBy("Fields"); } if (!pFields) { - return NULL; + return nullptr; } - CPDF_Object* pFindObj = NULL; + CPDF_Object* pFindObj = nullptr; if (pFields->IsDictionary() || pFields->IsString()) { if (iIndex == 0) pFindObj = pFields; -- cgit v1.2.3