From 56d857152d0d87fcbbbfe08904bd15d3e288bdf8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 11 Jan 2024 00:49:32 +0100 Subject: [PATCH] Don't use comma operator in wxPoint operators This was probably done unintentionally in 8ccbd7e95d (Implement operator/=(int) and operator*=(int) for wxPoint and wxRealPoint., 2024-01-04) and results in warnings from clang. --- include/wx/gdicmn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 555ee6985a..56ab3adf38 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -620,8 +620,8 @@ public: wxPoint& operator+=(const wxSize& s) { x += s.GetWidth(); y += s.GetHeight(); return *this; } wxPoint& operator-=(const wxSize& s) { x -= s.GetWidth(); y -= s.GetHeight(); return *this; } - wxPoint& operator/=(int i) { x /= i, y /= i; return *this; } - wxPoint& operator*=(int i) { x *= i, y *= i; return *this; } + wxPoint& operator/=(int i) { x /= i; y /= i; return *this; } + wxPoint& operator*=(int i) { x *= i; y *= i; return *this; } wxPoint& operator/=(double f) { x = wxRound(x/f); y = wxRound(y/f); return *this; } wxPoint& operator*=(double f) { x = wxRound(x*f); y = wxRound(y*f); return *this; }