mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
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:
parent
4de8adabac
commit
b2f7073539
Notes:
sideshowbarker
2024-07-17 07:31:31 +09:00
Author: https://github.com/trflynn89
Commit: b2f7073539
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/176
4 changed files with 10 additions and 10 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ struct LocaleID {
|
|||
Vector<String> private_use_extensions {};
|
||||
};
|
||||
|
||||
enum class Style : u8 {
|
||||
enum class Style {
|
||||
Long,
|
||||
Short,
|
||||
Narrow,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue