From 8a5e15d7b16c1c2a99b013fc4f68597cedab4fcf Mon Sep 17 00:00:00 2001 From: thestig Date: Mon, 21 Nov 2016 14:54:29 -0800 Subject: Make CPDF_ImageObject::m_Matrix private. Review-Url: https://codereview.chromium.org/2514263003 --- core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/fpdfapi/edit') diff --git a/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp b/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp index cabd2c391c..a65d564141 100644 --- a/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp +++ b/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp @@ -19,7 +19,7 @@ namespace { -CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& ar, CFX_Matrix& matrix) { +CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& ar, const CFX_Matrix& matrix) { ar << matrix.a << " " << matrix.b << " " << matrix.c << " " << matrix.d << " " << matrix.e << " " << matrix.f; return ar; @@ -84,11 +84,11 @@ CFX_ByteString CPDF_PageContentGenerator::RealizeResource( void CPDF_PageContentGenerator::ProcessImage(CFX_ByteTextBuf* buf, CPDF_ImageObject* pImageObj) { - if ((pImageObj->m_Matrix.a == 0 && pImageObj->m_Matrix.b == 0) || - (pImageObj->m_Matrix.c == 0 && pImageObj->m_Matrix.d == 0)) { + if ((pImageObj->matrix().a == 0 && pImageObj->matrix().b == 0) || + (pImageObj->matrix().c == 0 && pImageObj->matrix().d == 0)) { return; } - *buf << "q " << pImageObj->m_Matrix << " cm "; + *buf << "q " << pImageObj->matrix() << " cm "; CPDF_Image* pImage = pImageObj->GetImage(); if (pImage->IsInline()) -- cgit v1.2.3