From 9ad7d96a78f98d865c541ba6a95af7e895ef2836 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 16 Feb 2017 09:26:40 -0500 Subject: Convert CPDF_TextPage classes to CFX_PointF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL converts the FX_FLOAT Origin values to CFX_PointF. Change-Id: Ic47d2bae1dd185fbc4ae88ac15fdd0fdf293c7f9 Reviewed-on: https://pdfium-review.googlesource.com/2716 Commit-Queue: dsinclair Reviewed-by: Nicolás Peña --- core/fxcrt/fx_coordinates.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/fxcrt') diff --git a/core/fxcrt/fx_coordinates.h b/core/fxcrt/fx_coordinates.h index 7e7ed5264c..c773d374f1 100644 --- a/core/fxcrt/fx_coordinates.h +++ b/core/fxcrt/fx_coordinates.h @@ -54,16 +54,16 @@ class CFX_PTemplate { y /= divisor; return *this; } - CFX_PTemplate operator+(const CFX_PTemplate& other) { + CFX_PTemplate operator+(const CFX_PTemplate& other) const { return CFX_PTemplate(x + other.x, y + other.y); } - CFX_PTemplate operator-(const CFX_PTemplate& other) { + CFX_PTemplate operator-(const CFX_PTemplate& other) const { return CFX_PTemplate(x - other.x, y - other.y); } - CFX_PTemplate operator*(BaseType factor) { + CFX_PTemplate operator*(BaseType factor) const { return CFX_PTemplate(x * factor, y * factor); } - CFX_PTemplate operator/(BaseType divisor) { + CFX_PTemplate operator/(BaseType divisor) const { return CFX_PTemplate(x / divisor, y / divisor); } -- cgit v1.2.3