sort: Avoid unnecessary copies when hashing Line objects

This commit is contained in:
Tim Ledbetter 2024-04-23 22:20:39 +01:00 committed by Tim Schumacher
parent 5764356cae
commit 1b1f27bdfb
Notes: sideshowbarker 2024-07-17 09:56:35 +09:00

View File

@ -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;