Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2462)

Unified Diff: core/fpdfdoc/doc_action.cpp

Issue 2032613003: Get rid of NULLs in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Fix a bad merge Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfdoc/cpdf_variabletext.cpp ('k') | core/fpdfdoc/doc_annot.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « core/fpdfdoc/cpdf_variabletext.cpp ('k') | core/fpdfdoc/doc_annot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698