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_tilingpattern.cpp | |
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_tilingpattern.cpp')
-rw-r--r-- | core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp b/core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp index 3ace57063c..0b1eeab9f4 100644 --- a/core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp +++ b/core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp @@ -13,13 +13,12 @@ CPDF_TilingPattern::CPDF_TilingPattern(CPDF_Document* pDoc, CPDF_Object* pPatternObj, - const CFX_Matrix* parentMatrix) + const CFX_Matrix& parentMatrix) : CPDF_Pattern(TILING, pDoc, pPatternObj, parentMatrix) { CPDF_Dictionary* pDict = m_pPatternObj->GetDict(); m_Pattern2Form = pDict->GetMatrixBy("Matrix"); m_bColored = pDict->GetIntegerBy("PaintType") == 1; - if (parentMatrix) - m_Pattern2Form.Concat(*parentMatrix); + m_Pattern2Form.Concat(parentMatrix); } CPDF_TilingPattern::~CPDF_TilingPattern() { |