diff options
author | tsepez <tsepez@chromium.org> | 2016-08-29 14:26:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-29 14:26:57 -0700 |
commit | 596014357f7cd9ee3245ba8ed52cbc5761151727 (patch) | |
tree | dc03386fe63a4d9d7484418c10c18f20fb1708f0 /fpdfsdk | |
parent | adbd32950006075fc04ff2cbb01bf3a099f0e010 (diff) | |
download | pdfium-596014357f7cd9ee3245ba8ed52cbc5761151727.tar.xz |
Revert "Replace wrapper methods in CPDF_Path with -> operator."
This reverts commit d09a09751f724ecdb1a0bc307447a3d0c212ebff.
TBR=dsinclair@chromium.org
Review-Url: https://codereview.chromium.org/2291833002
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdf_transformpage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fpdf_transformpage.cpp b/fpdfsdk/fpdf_transformpage.cpp index 7c26c73d87..af8bb7de5b 100644 --- a/fpdfsdk/fpdf_transformpage.cpp +++ b/fpdfsdk/fpdf_transformpage.cpp @@ -223,7 +223,7 @@ DLLEXPORT FPDF_CLIPPATH STDCALL FPDF_CreateClipPath(float left, pNewClipPath->MakePrivateCopy(); CPDF_Path Path; Path.MakePrivateCopy(); - Path->AppendRect(left, bottom, right, top); + Path.AppendRect(left, bottom, right, top); pNewClipPath->AppendPath(Path, FXFILL_ALTERNATE, FALSE); return pNewClipPath; } @@ -239,7 +239,7 @@ void OutputPath(CFX_ByteTextBuf& buf, CPDF_Path path) { FX_PATHPOINT* pPoints = pPathData->GetPoints(); - if (path->IsRect()) { + if (path.IsRect()) { buf << (pPoints[0].m_PointX) << " " << (pPoints[0].m_PointY) << " " << (pPoints[2].m_PointX - pPoints[0].m_PointX) << " " << (pPoints[2].m_PointY - pPoints[0].m_PointY) << " re\n"; @@ -290,7 +290,7 @@ DLLEXPORT void STDCALL FPDFPage_InsertClipPath(FPDF_PAGE page, for (i = 0; i < pClipPath->GetPathCount(); i++) { CPDF_Path path = pClipPath->GetPath(i); int iClipType = pClipPath->GetClipType(i); - if (path->GetPointCount() == 0) { + if (path.GetPointCount() == 0) { // Empty clipping (totally clipped out) strClip << "0 0 m W n "; } else { |