mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +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
|
@ -46,7 +46,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
// target_account is the account we are changing the password of.
|
||||
auto target_account = TRY(!username.is_empty()
|
||||
? Core::Account::from_name(username.characters())
|
||||
? Core::Account::from_name(username)
|
||||
: Core::Account::from_uid(current_uid));
|
||||
|
||||
setpwent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue