aboutsummaryrefslogtreecommitdiffstats
path: root/src/hashcomp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r--src/hashcomp.cpp2
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())