summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/caret.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/caret.hxx b/starmath/inc/caret.hxx
index de13ac97a32f..c1ef793a9242 100644
--- a/starmath/inc/caret.hxx
+++ b/starmath/inc/caret.hxx
@@ -68,7 +68,7 @@ public:
long SquaredDistanceX(const SmCaretLine& line) const{
return (GetLeft() - line.GetLeft()) * (GetLeft() - line.GetLeft());
}
- long SquaredDistanceX(Point pos) const{
+ long SquaredDistanceX(const Point &pos) const{
return (GetLeft() - pos.X()) * (GetLeft() - pos.X());
}
long SquaredDistanceY(const SmCaretLine& line) const{
@@ -81,7 +81,7 @@ public:
return 0;
return d * d;
}
- long SquaredDistanceY(Point pos) const{
+ long SquaredDistanceY(const Point &pos) const{
long d = GetTop() - pos.Y();
if(d < 0)
d = (d * -1) - GetHeight();