From 76ec926e732926e84de9c8b4ef0018464172e73b Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 9 Oct 2018 23:32:10 +0000 Subject: Remove default argument to CPDF_Dictionary::GetBooleanFor(). Change-Id: I5b64bc3af90b9557d8e0c456675afe60e463927d Reviewed-on: https://pdfium-review.googlesource.com/c/43612 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- core/fpdfdoc/cpdf_annotlist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/fpdfdoc/cpdf_annotlist.cpp') 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) -- cgit v1.2.3