Index: core/fpdfdoc/doc_action.cpp |
diff --git a/core/fpdfdoc/doc_action.cpp b/core/fpdfdoc/doc_action.cpp |
index e646df2b4c455c7f087415f7e4d541cc15c52536..c512d1afa9afee4597f50f2e3dee7d2fbce7fbd5 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_Object*> 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; |