mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibGfx: Use default instead of an empty constructor/destructor
Default implementations allow for more optimizations. See: https://pvs-studio.com/en/docs/warnings/v832/
This commit is contained in:
parent
a7364eef3c
commit
f327f54399
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ public:
|
|||
MidMagenta,
|
||||
};
|
||||
|
||||
constexpr Color() { }
|
||||
constexpr Color() = default;
|
||||
constexpr Color(NamedColor);
|
||||
constexpr Color(u8 r, u8 g, u8 b)
|
||||
: m_value(0xff000000 | (r << 16) | (g << 8) | b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue