diff options
author | thestig <thestig@chromium.org> | 2016-04-26 22:41:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-26 22:41:36 -0700 |
commit | 12168d764be266a209bc3fd15dbe4223732ae319 (patch) | |
tree | e4a10cbf579ae2b5023474f995fdffbdb5ee9959 /core/fpdfapi/fpdf_page/include | |
parent | 931bf37379db7274d0e42f68cf358749cb05ba89 (diff) | |
download | pdfium-12168d764be266a209bc3fd15dbe4223732ae319.tar.xz |
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
Diffstat (limited to 'core/fpdfapi/fpdf_page/include')
-rw-r--r-- | core/fpdfapi/fpdf_page/include/cpdf_form.h | 13 |
1 files changed, 7 insertions, 6 deletions
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_ |