From 12168d764be266a209bc3fd15dbe4223732ae319 Mon Sep 17 00:00:00 2001 From: thestig Date: Tue, 26 Apr 2016 22:41:36 -0700 Subject: CPDF_Document::LoadPattern() and friends always have a valid matrix. So pass by const-ref instead of by pointer. Review URL: https://codereview.chromium.org/1923153002 --- core/fpdfapi/fpdf_page/include/cpdf_form.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'core/fpdfapi/fpdf_page/include') diff --git a/core/fpdfapi/fpdf_page/include/cpdf_form.h b/core/fpdfapi/fpdf_page/include/cpdf_form.h index 542ab498a6..d36a976176 100644 --- a/core/fpdfapi/fpdf_page/include/cpdf_form.h +++ b/core/fpdfapi/fpdf_page/include/cpdf_form.h @@ -25,17 +25,18 @@ class CPDF_Form : public CPDF_PageObjectHolder { ~CPDF_Form(); - void StartParse(CPDF_AllStates* pGraphicStates, - CFX_Matrix* pParentMatrix, - CPDF_Type3Char* pType3Char, - int level = 0); - void ParseContent(CPDF_AllStates* pGraphicStates, - CFX_Matrix* pParentMatrix, + const CFX_Matrix* pParentMatrix, CPDF_Type3Char* pType3Char, int level = 0); CPDF_Form* Clone() const; + + private: + void StartParse(CPDF_AllStates* pGraphicStates, + const CFX_Matrix* pParentMatrix, + CPDF_Type3Char* pType3Char, + int level = 0); }; #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_FORM_H_ -- cgit v1.2.3