Skip to content

Commit

Permalink
vaev-base: Use enum struct for font sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Nov 10, 2024
1 parent 7a0dff9 commit f018839
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/web/vaev-base/font.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ struct FontWeight {
};

struct FontSize {
enum _Named {
enum struct _Named {
// absolute
XX_SMALL,
X_SMALL,
Expand All @@ -194,6 +194,8 @@ struct FontSize {
_LEN,
};

using enum _Named;

_Named _named;
PercentOr<Length> _value;

Expand Down

0 comments on commit f018839

Please sign in to comment.