summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_pattern.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_pattern.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_pattern.cpp')
-rw-r--r--core/fpdfapi/fpdf_page/cpdf_pattern.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_pattern.cpp b/core/fpdfapi/fpdf_page/cpdf_pattern.cpp
index 838f4af09b..f8bc9a555f 100644
--- a/core/fpdfapi/fpdf_page/cpdf_pattern.cpp
+++ b/core/fpdfapi/fpdf_page/cpdf_pattern.cpp
@@ -9,10 +9,10 @@
CPDF_Pattern::CPDF_Pattern(PatternType type,
CPDF_Document* pDoc,
CPDF_Object* pObj,
- const CFX_Matrix* pParentMatrix)
- : m_PatternType(type), m_pDocument(pDoc), m_pPatternObj(pObj) {
- if (pParentMatrix)
- m_ParentMatrix = *pParentMatrix;
-}
+ const CFX_Matrix& parentMatrix)
+ : m_PatternType(type),
+ m_pDocument(pDoc),
+ m_pPatternObj(pObj),
+ m_ParentMatrix(parentMatrix) {}
CPDF_Pattern::~CPDF_Pattern() {}