From 325042f2b7a6cd89aa3b287d6e2ef237f628870f Mon Sep 17 00:00:00 2001 From: FrHun <28605587+frhun@users.noreply.github.com> Date: Thu, 16 Jun 2022 15:45:00 +0200 Subject: [PATCH] AK: Make Point constructors constexpr --- Userland/Libraries/LibGfx/Point.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGfx/Point.h b/Userland/Libraries/LibGfx/Point.h index 59fe677106f..4aae55d35c7 100644 --- a/Userland/Libraries/LibGfx/Point.h +++ b/Userland/Libraries/LibGfx/Point.h @@ -22,14 +22,14 @@ class Point { public: Point() = default; - Point(T x, T y) + constexpr Point(T x, T y) : m_x(x) , m_y(y) { } template - Point(U x, U y) + constexpr Point(U x, U y) : m_x(x) , m_y(y) {