Procházet zdrojové kódy

AK: Make Point constructors constexpr

FrHun před 3 roky
rodič
revize
325042f2b7
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Userland/Libraries/LibGfx/Point.h

+ 2 - 2
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<typename U>
-    Point(U x, U y)
+    constexpr Point(U x, U y)
         : m_x(x)
         , m_y(y)
     {