summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-02-16 09:26:40 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-16 15:12:38 +0000
commit9ad7d96a78f98d865c541ba6a95af7e895ef2836 (patch)
treec74cc468b747c3670c40a928919dac5b33c8bde2 /core/fxcrt
parentfa42927a727aa7f7f081b40ff75d1a849c2365c3 (diff)
downloadpdfium-9ad7d96a78f98d865c541ba6a95af7e895ef2836.tar.xz
Convert CPDF_TextPage classes to CFX_PointFchromium/3015
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 <dsinclair@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxcrt')
-rw-r--r--core/fxcrt/fx_coordinates.h8
1 files changed, 4 insertions, 4 deletions
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);
}