diff --git a/Userland/Libraries/LibGfx/Vector2.h b/Userland/Libraries/LibGfx/Vector2.h index 16e9d06023..b4a68a06df 100644 --- a/Userland/Libraries/LibGfx/Vector2.h +++ b/Userland/Libraries/LibGfx/Vector2.h @@ -108,7 +108,7 @@ public: return sqrt(m_x * m_x + m_y * m_y); } - constexpr String to_string() const + String to_string() const { return String::formatted("[{},{}]", x(), y()); } diff --git a/Userland/Libraries/LibGfx/Vector3.h b/Userland/Libraries/LibGfx/Vector3.h index 7bad4f09b9..6f6c41d0c7 100644 --- a/Userland/Libraries/LibGfx/Vector3.h +++ b/Userland/Libraries/LibGfx/Vector3.h @@ -124,7 +124,7 @@ public: return sqrt(m_x * m_x + m_y * m_y + m_z * m_z); } - constexpr String to_string() const + String to_string() const { return String::formatted("[{},{},{}]", x(), y(), z()); } diff --git a/Userland/Libraries/LibGfx/Vector4.h b/Userland/Libraries/LibGfx/Vector4.h index 1f7699f6f0..c7570ea852 100644 --- a/Userland/Libraries/LibGfx/Vector4.h +++ b/Userland/Libraries/LibGfx/Vector4.h @@ -124,7 +124,7 @@ public: return sqrt(m_x * m_x + m_y * m_y + m_z * m_z + m_w * m_w); } - constexpr String to_string() const + String to_string() const { return String::formatted("[{},{},{},{}]", x(), y(), z(), w()); }