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

View File

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

View File

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

View File

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