summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-04-26 22:41:36 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-26 22:41:36 -0700
commit12168d764be266a209bc3fd15dbe4223732ae319 (patch)
treee4a10cbf579ae2b5023474f995fdffbdb5ee9959 /core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp
parent931bf37379db7274d0e42f68cf358749cb05ba89 (diff)
downloadpdfium-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.cpp5
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() {