parseContentAddressMethodPrefix: use string_view
Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
committed by
Robert Hensing
co-authored by
John Ericson
parent
8279178b07
commit
fbf509c113
@@ -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;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user