mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
AK: Add implicit String -> StringView conversion
And tidy up existing view() users.
This commit is contained in:
parent
decf1afbaa
commit
b55b6cd7fc
Notes:
sideshowbarker
2024-07-19 13:46:32 +09:00
Author: https://github.com/rburchell
Commit: b55b6cd7fc
Pull-request: https://github.com/SerenityOS/serenity/pull/167
6 changed files with 13 additions and 6 deletions
|
@ -41,7 +41,7 @@ static void write_var(const String& name, const String& value)
|
|||
fprintf(stderr, "open: %s", f.error_string());
|
||||
exit(1);
|
||||
}
|
||||
f.write(value.view());
|
||||
f.write(value);
|
||||
if (f.error() < 0) {
|
||||
fprintf(stderr, "write: %s", f.error_string());
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue