1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

Assistant: Make strings const referenced

Found by clazy.
This commit is contained in:
Karol Kosek 2021-10-14 15:35:38 +02:00 committed by Andreas Kling
parent 7496f17620
commit 5ddd1555bc
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ static FuzzyMatchResult fuzzy_match_recursive(String const& needle, String const
return { false, out_score };
}
FuzzyMatchResult fuzzy_match(String needle, String haystack)
FuzzyMatchResult fuzzy_match(String const& needle, String const& haystack)
{
int recursion_count = 0;
u8 matches[MAX_MATCHES] {};