mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
AK: Use StringView as its own peek type
StringView is already a reference type, and copying it is cheap, so we should use it as its own peek type.
This commit is contained in:
parent
d7a721951e
commit
8468fb9ae5
|
|
@ -377,6 +377,8 @@ private:
|
|||
|
||||
template<>
|
||||
struct Traits<StringView> : public DefaultTraits<StringView> {
|
||||
using PeekType = StringView;
|
||||
using ConstPeekType = StringView;
|
||||
static unsigned hash(StringView s) { return s.hash(); }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user