mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Misc: Replace "String(string_view)" with "string_view.to_string()"
StringView::to_string() was added in 917ccb1 but not actually used anywhere yet.
This commit is contained in:
parent
107ca2e4ba
commit
9dbab2d05e
Notes:
sideshowbarker
2024-07-19 06:55:43 +09:00
Author: https://github.com/linusg
Commit: 9dbab2d05e
Pull-request: https://github.com/SerenityOS/serenity/pull/2136
10 changed files with 11 additions and 11 deletions
|
@ -307,7 +307,7 @@ void FilePicker::on_file_return()
|
|||
bool FilePicker::file_exists(const StringView& path)
|
||||
{
|
||||
struct stat st;
|
||||
int rc = stat(String(path).characters(), &st);
|
||||
int rc = stat(path.to_string().characters(), &st);
|
||||
if (rc < 0) {
|
||||
if (errno == ENOENT)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue