summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/doc_action.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-06-07 10:46:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-07 10:46:23 -0700
commit4997b22f84307521a62838f874928bf56cd3423c (patch)
treead11d99ac0a491ee222e9d0a42ec3b6ad3354e2a /core/fpdfdoc/doc_action.cpp
parent0687e76dc259c678b3f29a6608331f07ffd8f1e2 (diff)
downloadpdfium-4997b22f84307521a62838f874928bf56cd3423c.tar.xz
Get rid of NULLs in core/
Review-Url: https://codereview.chromium.org/2032613003
Diffstat (limited to 'core/fpdfdoc/doc_action.cpp')
-rw-r--r--core/fpdfdoc/doc_action.cpp12
1 files changed, 6 insertions, 6 deletions
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_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;