mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
Assistant: Make strings const referenced
Found by clazy.
This commit is contained in:
parent
7496f17620
commit
5ddd1555bc
2 changed files with 2 additions and 2 deletions
|
@ -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] {};
|
||||
|
|
|
@ -24,6 +24,6 @@ struct FuzzyMatchResult {
|
|||
// Scores are not normalized between any values and have no particular meaning. The starting value is 100 and when we
|
||||
// detect good indicators of a match we add to the score. When we detect bad indicators, we penalize the match and subtract
|
||||
// from its score. Therefore, the longer the needle/haystack the greater the range of scores could be.
|
||||
FuzzyMatchResult fuzzy_match(String needle, String haystack);
|
||||
FuzzyMatchResult fuzzy_match(String const& needle, String const& haystack);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue