mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
LibCore: Use StringView
instead of char *
in Account
This commit is contained in:
parent
0396b6da82
commit
507cb411c2
10 changed files with 33 additions and 36 deletions
|
@ -47,8 +47,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
print_account_gids(account);
|
||||
}
|
||||
|
||||
for (auto username : usernames) {
|
||||
auto result = Core::Account::from_name(username.characters(), Core::Account::Read::PasswdOnly);
|
||||
for (auto const& username : usernames) {
|
||||
auto result = Core::Account::from_name(username, Core::Account::Read::PasswdOnly);
|
||||
if (result.is_error()) {
|
||||
warnln("{} '{}'", result.error(), username);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue