summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_allstates.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-02 16:56:21 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-02 16:56:21 -0700
commit6296f2d501e2749d98e890ed722f923ee584c9ca (patch)
treeb2eaeda969c65c52132f75cc0391cbd35ee6557a /core/fpdfapi/fpdf_page/cpdf_allstates.cpp
parente106b50129d5b8ce50228c67d3b0170bc46c4b2e (diff)
downloadpdfium-6296f2d501e2749d98e890ed722f923ee584c9ca.tar.xz
Remove CFX_Matrix::Copy() in favor of assignment
The default assignment operator will suffice and allows us to write matrix1 = matrix2; Review-Url: https://codereview.chromium.org/2307953003
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_allstates.cpp')
-rw-r--r--core/fpdfapi/fpdf_page/cpdf_allstates.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_allstates.cpp b/core/fpdfapi/fpdf_page/cpdf_allstates.cpp
index b92f10b095..2883c26309 100644
--- a/core/fpdfapi/fpdf_page/cpdf_allstates.cpp
+++ b/core/fpdfapi/fpdf_page/cpdf_allstates.cpp
@@ -30,9 +30,9 @@ CPDF_AllStates::~CPDF_AllStates() {}
void CPDF_AllStates::Copy(const CPDF_AllStates& src) {
CopyStates(src);
- m_TextMatrix.Copy(src.m_TextMatrix);
- m_ParentMatrix.Copy(src.m_ParentMatrix);
- m_CTM.Copy(src.m_CTM);
+ m_TextMatrix = src.m_TextMatrix;
+ m_ParentMatrix = src.m_ParentMatrix;
+ m_CTM = src.m_CTM;
m_TextX = src.m_TextX;
m_TextY = src.m_TextY;
m_TextLineX = src.m_TextLineX;