mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
sort: Avoid unnecessary copies when hashing Line objects
This commit is contained in:
parent
5764356cae
commit
1b1f27bdfb
Notes:
sideshowbarker
2024-07-17 09:56:35 +09:00
Author: https://github.com/tcl3
Commit: 1b1f27bdfb
Pull-request: https://github.com/SerenityOS/serenity/pull/17930
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/timschumi ✅
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue