mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
AK: Make Point constructors constexpr
This commit is contained in:
parent
b3d1fa4c54
commit
325042f2b7
Notes:
sideshowbarker
2024-07-17 10:04:20 +09:00
Author: https://github.com/frhun Commit: https://github.com/SerenityOS/serenity/commit/325042f2b7 Pull-request: https://github.com/SerenityOS/serenity/pull/14282 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/MacDue
@ -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…
Reference in New Issue
Block a user