aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/hash.cc
diff options
context:
space:
mode:
authortomberek <tomberek@users.noreply.github.com>2022-02-03 02:39:18 -0500
committerGitHub <noreply@github.com>2022-02-03 02:39:18 -0500
commit12ff354d016058b25245d7e75d5b0c8ff7323839 (patch)
tree006cd6d3ff1e7781ba4583d5ebbf1245a21837bf /src/libutil/hash.cc
parent6e5e64fc7485cc12dd98be07e9abcc52d63dfd86 (diff)
parentfcb33440b6d3038e6761e546fc9434fa8e9a1666 (diff)
Merge branch 'master' into bundler_drv
Diffstat (limited to 'src/libutil/hash.cc')
-rw-r--r--src/libutil/hash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc
index 4df8b4ecb..6ed00d43c 100644
--- a/src/libutil/hash.cc
+++ b/src/libutil/hash.cc
@@ -259,7 +259,7 @@ Hash::Hash(std::string_view rest, HashType type, bool isSRI)
throw BadHash("hash '%s' has wrong length for hash type '%s'", rest, printHashType(this->type));
}
-Hash newHashAllowEmpty(std::string hashStr, std::optional<HashType> ht)
+Hash newHashAllowEmpty(std::string_view hashStr, std::optional<HashType> ht)
{
if (hashStr.empty()) {
if (!ht)