mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibGfx: Make Color::NamedColor
be an enum class
As this is used extensively across the codebase, the change would add a lot of noise. To prevent it, let's also add an `using enum` declaration.
This commit is contained in:
parent
5b2356b452
commit
f0269daeb6
Notes:
sideshowbarker
2024-07-16 23:52:10 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/f0269daeb6 Pull-request: https://github.com/SerenityOS/serenity/pull/24428 Reviewed-by: https://github.com/nico ✅
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,7 @@ struct Oklab {
|
|||
|
||||
class Color {
|
||||
public:
|
||||
enum NamedColor {
|
||||
enum class NamedColor {
|
||||
Transparent,
|
||||
Black,
|
||||
White,
|
||||
|
@ -66,6 +66,8 @@ public:
|
|||
LightBlue,
|
||||
};
|
||||
|
||||
using enum NamedColor;
|
||||
|
||||
constexpr Color() = default;
|
||||
constexpr Color(NamedColor);
|
||||
constexpr Color(u8 r, u8 g, u8 b)
|
||||
|
|
Loading…
Reference in a new issue