mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
AK: Add implicit String -> StringView conversion
And tidy up existing view() users.
This commit is contained in:
committed by
Andreas Kling
parent
decf1afbaa
commit
b55b6cd7fc
@@ -111,7 +111,7 @@ Vector<StringView> String::split_view(const char separator) const
|
||||
if (taillen != 0)
|
||||
v.append(substring_view(substart, taillen));
|
||||
if (characters()[length() - 1] == separator)
|
||||
v.append(empty().view());
|
||||
v.append(empty());
|
||||
return v;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user