From ce4b5f535f43bd2ff800b709f88c6f9c5be68003 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Mon, 2 Aug 2010 17:39:00 -0300 Subject: Created operator != or __ne__ in Point class, to avoid tests errors with Python 2.7. Reviewer: Marcelo Lira Luciano Wolf --- tests/libsample/point.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/libsample/point.cpp') diff --git a/tests/libsample/point.cpp b/tests/libsample/point.cpp index 0b6540202..4c527b3a0 100644 --- a/tests/libsample/point.cpp +++ b/tests/libsample/point.cpp @@ -86,6 +86,12 @@ Point::operator+=(Point &other) return *this; } +bool +Point::operator!=(const Point &other) +{ + return (m_x != other.m_x) || (m_y != other.m_y); +} + Point& Point::operator-=(Point &other) { -- cgit v1.2.3