diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2020-09-17 22:04:05 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2020-09-21 07:55:47 +0200 |
commit | fbf509c1137fd59ebb3e7a993c8da42c17deb68a (patch) | |
tree | 5f128596d70805c5eb20a9f5e50eefbd06e68ac2 /src/libstore/content-address.cc | |
parent | 8279178b078103f816bf85f5a153a4845d30cc83 (diff) |
parseContentAddressMethodPrefix: use string_view
Co-authored-by: John Ericson <git@JohnEricson.me>
Diffstat (limited to 'src/libstore/content-address.cc')
-rw-r--r-- | src/libstore/content-address.cc | 2 |
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; { |