From f71e20d0ce766a2ff41bd135292388979f232b11 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Sep 2017 16:57:38 +0200 Subject: [PATCH] util/StringView: use value_type --- src/util/StringView.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/StringView.hxx b/src/util/StringView.hxx index 4d384d4ed..5db6a0802 100644 --- a/src/util/StringView.hxx +++ b/src/util/StringView.hxx @@ -60,7 +60,7 @@ struct StringView : ConstBuffer { } gcc_pure - pointer_type Find(char ch) const noexcept { + pointer_type Find(value_type ch) const noexcept { return (pointer_type)memchr(data, ch, size); }