1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:37:34 +00:00

AK: Rename GenericTraits to DefaultTraits

This feels like a more fitting name for something that provides the
default values for Traits.
This commit is contained in:
Tim Schumacher 2023-11-08 20:29:12 +01:00 committed by Tim Flynn
parent ac23ab42b3
commit a2f60911fe
101 changed files with 154 additions and 154 deletions

View file

@ -118,7 +118,7 @@ struct AK::Formatter<CalendarPattern> : Formatter<FormatString> {
};
template<>
struct AK::Traits<CalendarPattern> : public GenericTraits<CalendarPattern> {
struct AK::Traits<CalendarPattern> : public DefaultTraits<CalendarPattern> {
static unsigned hash(CalendarPattern const& c) { return c.hash(); }
};
@ -185,7 +185,7 @@ struct AK::Formatter<CalendarRangePattern> : Formatter<FormatString> {
};
template<>
struct AK::Traits<CalendarRangePattern> : public GenericTraits<CalendarRangePattern> {
struct AK::Traits<CalendarRangePattern> : public DefaultTraits<CalendarRangePattern> {
static unsigned hash(CalendarRangePattern const& c) { return c.hash(); }
};
@ -226,7 +226,7 @@ struct AK::Formatter<CalendarFormat> : Formatter<FormatString> {
};
template<>
struct AK::Traits<CalendarFormat> : public GenericTraits<CalendarFormat> {
struct AK::Traits<CalendarFormat> : public DefaultTraits<CalendarFormat> {
static unsigned hash(CalendarFormat const& c) { return c.hash(); }
};
@ -265,7 +265,7 @@ struct AK::Formatter<CalendarSymbols> : Formatter<FormatString> {
};
template<>
struct AK::Traits<CalendarSymbols> : public GenericTraits<CalendarSymbols> {
struct AK::Traits<CalendarSymbols> : public DefaultTraits<CalendarSymbols> {
static unsigned hash(CalendarSymbols const& c) { return c.hash(); }
};
@ -329,7 +329,7 @@ struct AK::Formatter<Calendar> : Formatter<FormatString> {
};
template<>
struct AK::Traits<Calendar> : public GenericTraits<Calendar> {
struct AK::Traits<Calendar> : public DefaultTraits<Calendar> {
static unsigned hash(Calendar const& c) { return c.hash(); }
};
@ -381,7 +381,7 @@ struct AK::Formatter<TimeZoneNames> : Formatter<FormatString> {
};
template<>
struct AK::Traits<TimeZoneNames> : public GenericTraits<TimeZoneNames> {
struct AK::Traits<TimeZoneNames> : public DefaultTraits<TimeZoneNames> {
static unsigned hash(TimeZoneNames const& t) { return t.hash(); }
};
@ -432,7 +432,7 @@ struct AK::Formatter<TimeZoneFormat> : Formatter<FormatString> {
};
template<>
struct AK::Traits<TimeZoneFormat> : public GenericTraits<TimeZoneFormat> {
struct AK::Traits<TimeZoneFormat> : public DefaultTraits<TimeZoneFormat> {
static unsigned hash(TimeZoneFormat const& t) { return t.hash(); }
};
@ -470,7 +470,7 @@ struct AK::Formatter<DayPeriod> : Formatter<FormatString> {
};
template<>
struct AK::Traits<DayPeriod> : public GenericTraits<DayPeriod> {
struct AK::Traits<DayPeriod> : public DefaultTraits<DayPeriod> {
static unsigned hash(DayPeriod const& d) { return d.hash(); }
};

View file

@ -61,7 +61,7 @@ struct AK::Formatter<DisplayPattern> : Formatter<FormatString> {
};
template<>
struct AK::Traits<DisplayPattern> : public GenericTraits<DisplayPattern> {
struct AK::Traits<DisplayPattern> : public DefaultTraits<DisplayPattern> {
static unsigned hash(DisplayPattern const& p) { return p.hash(); }
};
@ -110,7 +110,7 @@ struct AK::Formatter<ListPatterns> : Formatter<FormatString> {
};
template<>
struct AK::Traits<ListPatterns> : public GenericTraits<ListPatterns> {
struct AK::Traits<ListPatterns> : public DefaultTraits<ListPatterns> {
static unsigned hash(ListPatterns const& p) { return p.hash(); }
};
@ -139,7 +139,7 @@ struct AK::Formatter<TextLayout> : Formatter<FormatString> {
};
template<>
struct AK::Traits<TextLayout> : public GenericTraits<TextLayout> {
struct AK::Traits<TextLayout> : public DefaultTraits<TextLayout> {
static unsigned hash(TextLayout const& t) { return t.hash(); }
};

View file

@ -90,7 +90,7 @@ struct AK::Formatter<NumberFormat> : Formatter<FormatString> {
};
template<>
struct AK::Traits<NumberFormat> : public GenericTraits<NumberFormat> {
struct AK::Traits<NumberFormat> : public DefaultTraits<NumberFormat> {
static unsigned hash(NumberFormat const& f) { return f.hash(); }
};
@ -167,7 +167,7 @@ struct AK::Formatter<NumberSystem> : Formatter<FormatString> {
};
template<>
struct AK::Traits<NumberSystem> : public GenericTraits<NumberSystem> {
struct AK::Traits<NumberSystem> : public DefaultTraits<NumberSystem> {
static unsigned hash(NumberSystem const& s) { return s.hash(); }
};
@ -209,7 +209,7 @@ struct AK::Formatter<Unit> : Formatter<FormatString> {
};
template<>
struct AK::Traits<Unit> : public GenericTraits<Unit> {
struct AK::Traits<Unit> : public DefaultTraits<Unit> {
static unsigned hash(Unit const& u) { return u.hash(); }
};

View file

@ -61,7 +61,7 @@ struct AK::Formatter<RelativeTimeFormat> : Formatter<FormatString> {
};
template<>
struct AK::Traits<RelativeTimeFormat> : public GenericTraits<RelativeTimeFormat> {
struct AK::Traits<RelativeTimeFormat> : public DefaultTraits<RelativeTimeFormat> {
static unsigned hash(RelativeTimeFormat const& format) { return format.hash(); }
};