summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Point.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGfx/Point.h')
-rw-r--r--Userland/Libraries/LibGfx/Point.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGfx/Point.h b/Userland/Libraries/LibGfx/Point.h
index 753d04055a..be6a71e149 100644
--- a/Userland/Libraries/LibGfx/Point.h
+++ b/Userland/Libraries/LibGfx/Point.h
@@ -107,12 +107,14 @@ public:
return point;
}
- bool operator==(const Point<T>& other) const
+ template<class U>
+ bool operator==(const Point<U>& other) const
{
- return m_x == other.m_x && m_y == other.m_y;
+ return x() == other.x() && y() == other.y();
}
- bool operator!=(const Point<T>& other) const
+ template<class U>
+ bool operator!=(const Point<U>& other) const
{
return !(*this == other);
}