From c51e0a0f9b2fbaa9f2eb911ab71f0d76d0215a94 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 10 Aug 2018 22:16:35 +0000 Subject: Make the 4th parameter in CPDF_Form non-optional. Instead, add a 3-parameter constructor that delegates to the 4-parameter constructor. Change-Id: Ied6c55360084ea26b07dbaa449bf155b5db182f0 Reviewed-on: https://pdfium-review.googlesource.com/39872 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- core/fpdfapi/page/cpdf_form.cpp | 5 +++++ core/fpdfapi/page/cpdf_form.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/core/fpdfapi/page/cpdf_form.cpp b/core/fpdfapi/page/cpdf_form.cpp index ca24f85b11..8db0dfff7f 100644 --- a/core/fpdfapi/page/cpdf_form.cpp +++ b/core/fpdfapi/page/cpdf_form.cpp @@ -13,6 +13,11 @@ #include "core/fpdfapi/parser/cpdf_stream.h" #include "third_party/base/ptr_util.h" +CPDF_Form::CPDF_Form(CPDF_Document* pDoc, + CPDF_Dictionary* pPageResources, + CPDF_Stream* pFormStream) + : CPDF_Form(pDoc, pPageResources, pFormStream, nullptr) {} + CPDF_Form::CPDF_Form(CPDF_Document* pDoc, CPDF_Dictionary* pPageResources, CPDF_Stream* pFormStream, diff --git a/core/fpdfapi/page/cpdf_form.h b/core/fpdfapi/page/cpdf_form.h index 155a6ae50f..63cc4a96c1 100644 --- a/core/fpdfapi/page/cpdf_form.h +++ b/core/fpdfapi/page/cpdf_form.h @@ -21,10 +21,13 @@ class CPDF_Type3Char; class CPDF_Form : public CPDF_PageObjectHolder { public: + CPDF_Form(CPDF_Document* pDocument, + CPDF_Dictionary* pPageResources, + CPDF_Stream* pFormStream); CPDF_Form(CPDF_Document* pDocument, CPDF_Dictionary* pPageResources, CPDF_Stream* pFormStream, - CPDF_Dictionary* pParentResources = nullptr); + CPDF_Dictionary* pParentResources); ~CPDF_Form() override; void ParseContent(CPDF_AllStates* pGraphicStates, -- cgit v1.2.3