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/cpdf_pattern.h | |
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/cpdf_pattern.h')
-rw-r--r-- | core/fpdfapi/fpdf_page/cpdf_pattern.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_pattern.h b/core/fpdfapi/fpdf_page/cpdf_pattern.h index d6ef49c7fb..983c9eab3f 100644 --- a/core/fpdfapi/fpdf_page/cpdf_pattern.h +++ b/core/fpdfapi/fpdf_page/cpdf_pattern.h @@ -27,19 +27,19 @@ class CPDF_Pattern { CPDF_Document* document() { return m_pDocument; } CPDF_Object* pattern_obj() { return m_pPatternObj; } CFX_Matrix* pattern_to_form() { return &m_Pattern2Form; } - CFX_Matrix* parent_matrix() { return &m_ParentMatrix; } + const CFX_Matrix& parent_matrix() const { return m_ParentMatrix; } protected: CPDF_Pattern(PatternType type, CPDF_Document* pDoc, CPDF_Object* pObj, - const CFX_Matrix* pParentMatrix); + const CFX_Matrix& parentMatrix); const PatternType m_PatternType; CPDF_Document* const m_pDocument; CPDF_Object* const m_pPatternObj; CFX_Matrix m_Pattern2Form; - CFX_Matrix m_ParentMatrix; + const CFX_Matrix m_ParentMatrix; }; #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_ |