summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_annotlist.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-09 23:32:10 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-09 23:32:10 +0000
commit76ec926e732926e84de9c8b4ef0018464172e73b (patch)
treefb59a9fb517b2d8a326b33cbc834202f903a86f6 /core/fpdfdoc/cpdf_annotlist.cpp
parent46ab5abf23910983663b3daeb6dc2f6a98ee24a8 (diff)
downloadpdfium-76ec926e732926e84de9c8b4ef0018464172e73b.tar.xz
Remove default argument to CPDF_Dictionary::GetBooleanFor().chromium/3576
Change-Id: I5b64bc3af90b9557d8e0c456675afe60e463927d Reviewed-on: https://pdfium-review.googlesource.com/c/43612 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_annotlist.cpp')
-rw-r--r--core/fpdfdoc/cpdf_annotlist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_annotlist.cpp b/core/fpdfdoc/cpdf_annotlist.cpp
index c6e0f63c4b..f6959fb78f 100644
--- a/core/fpdfdoc/cpdf_annotlist.cpp
+++ b/core/fpdfdoc/cpdf_annotlist.cpp
@@ -170,7 +170,8 @@ CPDF_AnnotList::CPDF_AnnotList(CPDF_Page* pPage)
const CPDF_Dictionary* pRoot = m_pDocument->GetRoot();
const CPDF_Dictionary* pAcroForm = pRoot->GetDictFor("AcroForm");
- bool bRegenerateAP = pAcroForm && pAcroForm->GetBooleanFor("NeedAppearances");
+ bool bRegenerateAP =
+ pAcroForm && pAcroForm->GetBooleanFor("NeedAppearances", false);
for (size_t i = 0; i < pAnnots->GetCount(); ++i) {
CPDF_Dictionary* pDict = ToDictionary(pAnnots->GetDirectObjectAt(i));
if (!pDict)