From af59cf16b40b6243a2194ced3e5f476ec655edb3 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 28 Aug 2017 18:09:38 -0700 Subject: Change CPDF_Form::ParseContent() to ParseContentWithParams(). Add a new ParseContent() method as a convenience to call ParseContentWithParams() with the default parameters. Change-Id: I274682845a72e125c3fc6299289edb760104ac4d Reviewed-on: https://pdfium-review.googlesource.com/12250 Commit-Queue: Ryan Harrison Reviewed-by: Ryan Harrison --- core/fpdfapi/page/cpdf_form.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'core/fpdfapi/page/cpdf_form.cpp') diff --git a/core/fpdfapi/page/cpdf_form.cpp b/core/fpdfapi/page/cpdf_form.cpp index c2170ac4e7..c5d9cbffcf 100644 --- a/core/fpdfapi/page/cpdf_form.cpp +++ b/core/fpdfapi/page/cpdf_form.cpp @@ -44,10 +44,14 @@ void CPDF_Form::StartParse(CPDF_AllStates* pGraphicStates, m_ParseState = CONTENT_PARSING; } -void CPDF_Form::ParseContent(CPDF_AllStates* pGraphicStates, - const CFX_Matrix* pParentMatrix, - CPDF_Type3Char* pType3Char, - int level) { +void CPDF_Form::ParseContent() { + ParseContentWithParams(nullptr, nullptr, nullptr, 0); +} + +void CPDF_Form::ParseContentWithParams(CPDF_AllStates* pGraphicStates, + const CFX_Matrix* pParentMatrix, + CPDF_Type3Char* pType3Char, + int level) { StartParse(pGraphicStates, pParentMatrix, pType3Char, level); ContinueParse(nullptr); } -- cgit v1.2.3