mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
AK: Make Point constructors constexpr
This commit is contained in:
parent
b3d1fa4c54
commit
325042f2b7
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue