mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20: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<>
|
template<>
|
||||||
struct AK::Traits<Line> : public DefaultTraits<Line> {
|
struct AK::Traits<Line> : public DefaultTraits<Line> {
|
||||||
static unsigned hash(Line l)
|
static unsigned hash(Line const& l)
|
||||||
{
|
{
|
||||||
if (l.numeric)
|
if (l.numeric)
|
||||||
return l.numeric_key;
|
return l.numeric_key;
|
||||||
|
|||||||
Reference in New Issue
Block a user