mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
sort: Avoid unnecessary copies when hashing Line objects
This commit is contained in:
1 parent
5764356cae
commit
1b1f27bdfb
1 file changed
+1
-1
@@ -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