More uses of string_view

This commit is contained in:
Henrik Rydgård 2023-11-13 23:36:34 +01:00
parent d0ee5fc308
commit 19eeaef2ea
11 changed files with 53 additions and 45 deletions

View file

@ -8,7 +8,7 @@ bool AndroidContentURI::Parse(std::string_view path) {
std::string_view components = path.substr(strlen(prefix));
std::vector<std::string> parts;
std::vector<std::string_view> parts;
SplitString(components, '/', parts);
if (parts.size() == 3) {
// Single file URI.