mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +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:
parent
ac23ab42b3
commit
a2f60911fe
Notes:
sideshowbarker
2024-07-17 21:11:12 +09:00
Author: https://github.com/timschumi
Commit: a2f60911fe
Pull-request: https://github.com/SerenityOS/serenity/pull/21852
101 changed files with 154 additions and 154 deletions
|
@ -105,7 +105,7 @@ struct AK::Formatter<Core::SocketAddress> : Formatter<DeprecatedString> {
|
|||
};
|
||||
|
||||
template<>
|
||||
struct AK::Traits<Core::SocketAddress> : public GenericTraits<Core::SocketAddress> {
|
||||
struct AK::Traits<Core::SocketAddress> : public DefaultTraits<Core::SocketAddress> {
|
||||
static unsigned hash(Core::SocketAddress const& socket_address)
|
||||
{
|
||||
return pair_int_hash(Traits<IPv4Address>::hash(socket_address.ipv4_address()), Traits<u16>::hash(socket_address.port()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue