storage/Composite: use std::string_view
This commit is contained in:
parent
6d23ac67f9
commit
e6bb6c59ec
@ -22,6 +22,7 @@
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
#include "util/IterableSplitString.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
#include "util/StringSplit.hxx"
|
||||
|
||||
#include <set>
|
||||
#include <stdexcept>
|
||||
@ -86,8 +87,7 @@ CompositeDirectoryReader::GetInfo(bool follow)
|
||||
static std::string_view
|
||||
NextSegment(std::string_view &uri_r) noexcept
|
||||
{
|
||||
StringView uri(uri_r);
|
||||
auto s = uri.Split('/');
|
||||
auto s = Split(uri_r, '/');
|
||||
uri_r = s.second;
|
||||
return s.first;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user