1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

AK: Make Point constructors constexpr

This commit is contained in:
FrHun 2022-06-16 15:45:00 +02:00 committed by Sam Atkins
parent b3d1fa4c54
commit 325042f2b7

View file

@ -22,14 +22,14 @@ class Point {
public: public:
Point() = default; Point() = default;
Point(T x, T y) constexpr Point(T x, T y)
: m_x(x) : m_x(x)
, m_y(y) , m_y(y)
{ {
} }
template<typename U> template<typename U>
Point(U x, U y) constexpr Point(U x, U y)
: m_x(x) : m_x(x)
, m_y(y) , m_y(y)
{ {