aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-10 21:50:32 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-05-10 21:50:32 +0200
commit0884f180f5ca8a864e6db5256eaa10646e87d671 (patch)
tree2e9447915aa6894e73bd6e98ab95aa148519b3cf /src/libutil/util.hh
parente0c19ee620c53b52ca7cf69c19d414d782338be1 (diff)
Simplify
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 4be1d4580..a861d5aa6 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -431,7 +431,7 @@ template<class N> bool string2Float(const string & s, N & n)
/* Return true iff `s' starts with `prefix'. */
-bool hasPrefix(const string & s, const string & prefix);
+bool hasPrefix(std::string_view s, std::string_view prefix);
/* Return true iff `s' ends in `suffix'. */