Pass string_view by value

This commit is contained in:
Dennis Luxen
2022-11-04 11:41:02 +01:00
parent 2c02d4e5ab
commit 5280ca4e16
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class SuffixTable final
// check whether a string is part of the know suffix list
bool isSuffix(const std::string &possible_suffix) const;
bool isSuffix(std::string_view possible_suffix) const;
bool isSuffix(std::string_view& possible_suffix) const;
private:
// Store lower-cased strings in SuffixTable and a set of StringViews for quick membership