From f65fa66940b78a3953e5dffa72ca384803957ad3 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 26 Mar 2012 02:51:09 +0200 Subject: utils/point: addition/subtraction should only be possible with same type --- src/utils/point.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/point.hpp b/src/utils/point.hpp index f897dbf6..40660941 100644 --- a/src/utils/point.hpp +++ b/src/utils/point.hpp @@ -76,28 +76,28 @@ namespace usdx } - Point& operator+=(const Point &other) + Point& operator+=(const Point &other) { x += other.x; y += other.y; return *this; } - Point& operator-=(const Point &other) + Point& operator-=(const Point &other) { x -= other.x; y -= other.y; return *this; } - const Point operator+(const Point &other) const + const Point operator+(const Point &other) const { Point result(*this); result += other; return result; } - const Point operator-(const Point &other) const + const Point operator-(const Point &other) const { Point result(*this); result -= other; -- cgit v1.2.3