From 57c3abba8b09fdb3f9fc2ddccaf5efce3edace31 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Fri, 7 Jan 2011 17:39:18 -0200 Subject: Fix bug#530 - "Importing division from future breaks QPoint division" Reviewer: Marcelo Lira Lauro Moura --- 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 b8d310cfe..484e7c11c 100644 --- a/tests/libsample/point.cpp +++ b/tests/libsample/point.cpp @@ -118,6 +118,12 @@ operator!(const Point& pt) return (pt.m_x == 0.0 && pt.m_y == 0.0); } +Point +Point::operator/(int operand) +{ + return Point(m_x/operand, m_y/operand); +} + Complex transmutePointIntoComplex(const Point& point) { -- cgit v1.2.3