diff options
author | Linus Groh <mail@linusgroh.de> | 2020-05-06 18:18:24 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-06 19:28:59 +0200 |
commit | 9dbab2d05e2893584dc4f9b42741fc0597718966 (patch) | |
tree | 1627952ac73604757a6791d1de0437bd954a2791 /Libraries/LibGUI/FilePicker.cpp | |
parent | 107ca2e4ba8f88f39f58c4a92d238ea642aa0d39 (diff) | |
download | serenity-9dbab2d05e2893584dc4f9b42741fc0597718966.zip |
Misc: Replace "String(string_view)" with "string_view.to_string()"
StringView::to_string() was added in 917ccb1 but not actually used
anywhere yet.
Diffstat (limited to 'Libraries/LibGUI/FilePicker.cpp')
-rw-r--r-- | Libraries/LibGUI/FilePicker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/FilePicker.cpp b/Libraries/LibGUI/FilePicker.cpp index b4e7e4d6f8..019a47d590 100644 --- a/Libraries/LibGUI/FilePicker.cpp +++ b/Libraries/LibGUI/FilePicker.cpp @@ -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; |