diff --git a/src/Point2.cpp b/src/Point2.cpp index d419f58..5340d53 100644 --- a/src/Point2.cpp +++ b/src/Point2.cpp @@ -41,7 +41,7 @@ bool Point2::operator==(const Point2& rhs) const bool Point2::operator!=(const Point2& rhs) const { - return !(x == y); + return !(*this == rhs); } Point2 Point2::operator+(const Point2& rhs) const