From 3f58f0e87ca5fbecfd5b14446fe6f3f9ac8750b8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 11 Feb 2020 11:27:13 +0100 Subject: [PATCH] LibGfx: Add Rect::operator!=(Rect) --- Libraries/LibGfx/Rect.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/LibGfx/Rect.h b/Libraries/LibGfx/Rect.h index 2fa67c3c31..103df2b8ec 100644 --- a/Libraries/LibGfx/Rect.h +++ b/Libraries/LibGfx/Rect.h @@ -264,6 +264,11 @@ public: && m_size == other.m_size; } + bool operator!=(const Rect& other) const + { + return !(*this == other); + } + void intersect(const Rect&); static Rect from_two_points(const Point& a, const Point& b)