mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 12:32:20 +02:00
AK: Try to use StringViews more for substrings and splitting.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 14:41:32 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/33920df2996
@@ -577,8 +577,7 @@ KResultOr<InodeIdentifier> VFS::resolve_path(StringView path, InodeIdentifier ba
|
||||
if (path.is_empty())
|
||||
return KResult(-EINVAL);
|
||||
|
||||
// FIXME: Use StringView::split() once it exists.
|
||||
auto parts = String(path).split('/');
|
||||
auto parts = path.split_view('/');
|
||||
InodeIdentifier crumb_id;
|
||||
|
||||
if (path[0] == '/')
|
||||
|
||||
Reference in New Issue
Block a user