From 9c5820326d62f52b408d8f4e271d8360108686f2 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 23 Jan 2023 10:48:49 -0500 Subject: [PATCH] AK: Make FixedPoint::create_raw public and constexpr --- AK/FixedPoint.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/AK/FixedPoint.h b/AK/FixedPoint.h index 3836077775..72948d1c50 100644 --- a/AK/FixedPoint.h +++ b/AK/FixedPoint.h @@ -74,6 +74,13 @@ public: return value; } + static constexpr This create_raw(Underlying value) + { + This t {}; + t.raw() = value; + return t; + } + constexpr Underlying raw() const { return m_value; @@ -379,13 +386,6 @@ private: return FixedPoint::create_raw(raw_value); } - static This create_raw(Underlying value) - { - This t {}; - t.raw() = value; - return t; - } - Underlying m_value; };