diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-09 23:32:10 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-09 23:32:10 +0000 |
commit | 76ec926e732926e84de9c8b4ef0018464172e73b (patch) | |
tree | fb59a9fb517b2d8a326b33cbc834202f903a86f6 /core/fpdfdoc/cpdf_interform.cpp | |
parent | 46ab5abf23910983663b3daeb6dc2f6a98ee24a8 (diff) | |
download | pdfium-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_interform.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_interform.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/fpdfdoc/cpdf_interform.cpp b/core/fpdfdoc/cpdf_interform.cpp index 207dc73d77..5e9e5e51b0 100644 --- a/core/fpdfdoc/cpdf_interform.cpp +++ b/core/fpdfdoc/cpdf_interform.cpp @@ -577,10 +577,7 @@ uint8_t CPDF_InterForm::GetNativeCharSet() { } CPDF_InterForm::CPDF_InterForm(CPDF_Document* pDocument) - : m_pDocument(pDocument), - m_pFormDict(nullptr), - m_pFieldTree(pdfium::MakeUnique<CFieldTree>()), - m_pFormNotify(nullptr) { + : m_pDocument(pDocument), m_pFieldTree(pdfium::MakeUnique<CFieldTree>()) { CPDF_Dictionary* pRoot = m_pDocument->GetRoot(); if (!pRoot) return; @@ -742,7 +739,7 @@ CPDF_FormControl* CPDF_InterForm::GetControlByDict( } bool CPDF_InterForm::NeedConstructAP() const { - return m_pFormDict && m_pFormDict->GetBooleanFor("NeedAppearances"); + return m_pFormDict && m_pFormDict->GetBooleanFor("NeedAppearances", false); } int CPDF_InterForm::CountFieldsInCalculationOrder() { |