From e6bb6c59ec636c8bd3eaee5df19ce0d03215e35f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 1 Jul 2022 11:12:36 +0200 Subject: [PATCH] storage/Composite: use std::string_view --- src/storage/CompositeStorage.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/CompositeStorage.cxx b/src/storage/CompositeStorage.cxx index fc82d457b..1a06e1afb 100644 --- a/src/storage/CompositeStorage.cxx +++ b/src/storage/CompositeStorage.cxx @@ -22,6 +22,7 @@ #include "fs/AllocatedPath.hxx" #include "util/IterableSplitString.hxx" #include "util/StringCompare.hxx" +#include "util/StringSplit.hxx" #include #include @@ -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; }