diff options
| author | 2022-05-21 16:36:14 +0100 | |
|---|---|---|
| committer | 2022-06-07 20:26:38 +0100 | |
| commit | 1991211a6743decdbc150ec7b21ff617f56b8c22 (patch) | |
| tree | 2103e2bc9e6d2bca5126dc7420c234630a184ca4 /src/hashcomp.cpp | |
| parent | Get rid of an indirection when handling the httpd_stats request. (diff) | |
Convert irc::find to use string_view.
Diffstat (limited to 'src/hashcomp.cpp')
| -rw-r--r-- | src/hashcomp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index b9f5dc6d4..2f18d14d4 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -103,7 +103,7 @@ bool irc::equals(const std::string_view& s1, const std::string_view& s2) return true; } -size_t irc::find(const std::string& haystack, const std::string& needle) +size_t irc::find(const std::string_view& haystack, const std::string_view& needle) { // The haystack can't contain the needle if it is smaller than it. if (needle.length() > haystack.length()) |
