LibLocale: Remove (now) needless explicit enum class underlying types

This was useful for code generation as reducing the size of the enums
had a notable impact on the size of the generated code. This is not the
case any longer.
This commit is contained in:
Timothy Flynn 2024-06-15 21:04:55 -04:00 committed by Andreas Kling
commit b2f7073539
Notes: sideshowbarker 2024-07-17 07:31:31 +09:00
4 changed files with 10 additions and 10 deletions

View file

@ -25,7 +25,7 @@ enum class DateTimeStyle {
DateTimeStyle date_time_style_from_string(StringView); DateTimeStyle date_time_style_from_string(StringView);
StringView date_time_style_to_string(DateTimeStyle); StringView date_time_style_to_string(DateTimeStyle);
enum class Weekday : u8 { enum class Weekday {
Sunday, Sunday,
Monday, Monday,
Tuesday, Tuesday,
@ -35,7 +35,7 @@ enum class Weekday : u8 {
Saturday, Saturday,
}; };
enum class HourCycle : u8 { enum class HourCycle {
H11, H11,
H12, H12,
H23, H23,
@ -45,7 +45,7 @@ HourCycle hour_cycle_from_string(StringView hour_cycle);
StringView hour_cycle_to_string(HourCycle hour_cycle); StringView hour_cycle_to_string(HourCycle hour_cycle);
Optional<HourCycle> default_hour_cycle(StringView locale); Optional<HourCycle> default_hour_cycle(StringView locale);
enum class CalendarPatternStyle : u8 { enum class CalendarPatternStyle {
Narrow, Narrow,
Short, Short,
Long, Long,

View file

@ -10,11 +10,11 @@
namespace Locale { namespace Locale {
enum class CalendarPatternStyle : u8; enum class CalendarPatternStyle;
enum class HourCycle : u8; enum class HourCycle;
enum class PluralCategory : u8; enum class PluralCategory;
enum class Style : u8; enum class Style;
enum class Weekday : u8; enum class Weekday;
class NumberFormat; class NumberFormat;

View file

@ -78,7 +78,7 @@ struct LocaleID {
Vector<String> private_use_extensions {}; Vector<String> private_use_extensions {};
}; };
enum class Style : u8 { enum class Style {
Long, Long,
Short, Short,
Narrow, Narrow,

View file

@ -17,7 +17,7 @@ enum class PluralForm {
PluralForm plural_form_from_string(StringView); PluralForm plural_form_from_string(StringView);
StringView plural_form_to_string(PluralForm); StringView plural_form_to_string(PluralForm);
enum class PluralCategory : u8 { enum class PluralCategory {
Other, Other,
Zero, Zero,
One, One,