mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
errno: Remove usage of DeprecatedString
This commit is contained in:
parent
23dd16febe
commit
6a21bbb5b2
Notes:
sideshowbarker
2024-07-17 07:20:49 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/6a21bbb5b2 Pull-request: https://github.com/SerenityOS/serenity/pull/18768
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
if (search) {
|
||||
for (int i = 0; i < sys_nerr; i++) {
|
||||
auto error = DeprecatedString::formatted("{}", strerror(i));
|
||||
auto error_string = strerror(i);
|
||||
StringView error { error_string, strlen(error_string) };
|
||||
if (error.contains(keyword, CaseSensitivity::CaseInsensitive))
|
||||
output_errno_description(i, error);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue