forked from lix-project/lix
parseContentAddressMethodPrefix: use string_view
Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
parent
8279178b07
commit
fbf509c113
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue