aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2020-09-17 22:04:05 +0200
committerRobert Hensing <robert@roberthensing.nl>2020-09-21 07:55:47 +0200
commitfbf509c1137fd59ebb3e7a993c8da42c17deb68a (patch)
tree5f128596d70805c5eb20a9f5e50eefbd06e68ac2
parent8279178b078103f816bf85f5a153a4845d30cc83 (diff)
parseContentAddressMethodPrefix: use string_view
Co-authored-by: John Ericson <git@JohnEricson.me>
-rw-r--r--src/libstore/content-address.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc
index bf56d3d77..74215c545 100644
--- a/src/libstore/content-address.cc
+++ b/src/libstore/content-address.cc
@@ -52,7 +52,7 @@ std::string renderContentAddressMethod(ContentAddressMethod cam) {
Parses content address strings up to the hash.
*/
static ContentAddressMethod parseContentAddressMethodPrefix(std::string_view & rest) {
- std::string wholeInput(rest);
+ std::string_view wholeInput { rest };
std::string_view prefix;
{