summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_annot.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_annot.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_annot.cpp')
-rw-r--r--core/fpdfdoc/cpdf_annot.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_annot.cpp b/core/fpdfdoc/cpdf_annot.cpp
index 432cf8c528..89268d493a 100644
--- a/core/fpdfdoc/cpdf_annot.cpp
+++ b/core/fpdfdoc/cpdf_annot.cpp
@@ -119,7 +119,8 @@ CPDF_Annot::~CPDF_Annot() {
void CPDF_Annot::Init() {
m_nSubtype = StringToAnnotSubtype(m_pAnnotDict->GetStringFor("Subtype"));
m_bIsTextMarkupAnnotation = IsTextMarkupAnnotation(m_nSubtype);
- m_bHasGeneratedAP = m_pAnnotDict->GetBooleanFor(kPDFiumKey_HasGeneratedAP);
+ m_bHasGeneratedAP =
+ m_pAnnotDict->GetBooleanFor(kPDFiumKey_HasGeneratedAP, false);
GenerateAPIfNeeded();
}