Skip to content

Commit

Permalink
Merge pull request ppy#6497 from turbedi/cleanup_stuff
Browse files Browse the repository at this point in the history
Remove a char[] allocation in SearchContainer.cs
  • Loading branch information
peppy authored Jan 20, 2025
2 parents 8d2f620 + a8f24f1 commit b19f2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Framework/Graphics/Containers/SearchContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected void Filter()

private void performFilter()
{
string[] terms = (searchTerm ?? string.Empty).Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
string[] terms = (searchTerm ?? string.Empty).Split(' ', StringSplitOptions.RemoveEmptyEntries);
matchSubTree(this, terms, terms.Length > 0, allowNonContiguousMatching);
}

Expand Down

0 comments on commit b19f2c2

Please sign in to comment.