summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
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);
}