mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
sort: Avoid unnecessary copies when hashing Line objects
This commit is contained in:
committed by
Tim Schumacher
parent
5764356cae
commit
1b1f27bdfb
@@ -42,7 +42,7 @@ private:
|
||||
|
||||
template<>
|
||||
struct AK::Traits<Line> : public DefaultTraits<Line> {
|
||||
static unsigned hash(Line l)
|
||||
static unsigned hash(Line const& l)
|
||||
{
|
||||
if (l.numeric)
|
||||
return l.numeric_key;
|
||||
|
||||
Reference in New Issue
Block a user