Cleanup: Use StringRef instead of StringRefNull

The called function here only needs StringRef, that can apply here too.
This commit is contained in:
Hans Goudey 2024-02-14 16:44:59 -05:00
parent aef0b6552b
commit a24d6e7012
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ template<typename T> class StringSearch : private StringSearchBase {
* \param weight: Can be used to customize the order when multiple items have the same match
* score.
*/
void add(const StringRefNull str, T *user_data, const int weight = 0)
void add(const StringRef str, T *user_data, const int weight = 0)
{
this->add_impl(str, (void *)user_data, weight);
}