From 1300c56f0d823e484bbe52d20533895a708d7b6b Mon Sep 17 00:00:00 2001 From: David Miguel Susano Pinto Date: Thu, 4 Jan 2024 01:30:17 +0000 Subject: [PATCH] Put wxRealPoint operators in the same order as wxPoint ones --- include/wx/gdicmn.h | 10 +++++----- interface/wx/gdicmn.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index b67f34dbd7..d6615235d5 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -580,6 +580,11 @@ inline wxRealPoint operator*(unsigned long i, const wxRealPoint& p) return wxRealPoint(p.x * i, p.y * i); } +inline wxRealPoint operator/(const wxRealPoint& p, double f) +{ + return wxRealPoint(p.x / f, p.y / f); +} + inline wxRealPoint operator*(const wxRealPoint& p, double f) { return wxRealPoint(p.x * f, p.y * f); @@ -590,11 +595,6 @@ inline wxRealPoint operator*(double f, const wxRealPoint& p) return wxRealPoint(p.x * f, p.y * f); } -inline wxRealPoint operator/(const wxRealPoint& p, double f) -{ - return wxRealPoint(p.x / f, p.y / f); -} - // ---------------------------------------------------------------------------- // wxPoint: 2D point with integer coordinates diff --git a/interface/wx/gdicmn.h b/interface/wx/gdicmn.h index 83cbe5289f..09c29b2791 100644 --- a/interface/wx/gdicmn.h +++ b/interface/wx/gdicmn.h @@ -235,9 +235,9 @@ public: wxRealPoint& operator /=(int divisor); wxRealPoint& operator *=(int factor); + wxRealPoint operator /(const wxRealPoint& pt, double divisor); wxRealPoint operator *(const wxRealPoint& pt, double factor); wxRealPoint operator *(double factor, const wxRealPoint& pt); - wxRealPoint operator /(const wxRealPoint& pt, double divisor); ///@} /**