mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
passwd: Use StringView instead of DeprecatedString
This can now be declared as a StringView, since commit 507cb411
Core::Account::from_name() takes a StringView as a input.
This removes one FIXME.
This commit is contained in:
parent
b6917bc886
commit
6b3cf21964
1 changed files with 1 additions and 2 deletions
|
@ -30,8 +30,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
bool del = false;
|
bool del = false;
|
||||||
bool lock = false;
|
bool lock = false;
|
||||||
bool unlock = false;
|
bool unlock = false;
|
||||||
// FIXME: Replace with StringView once Core::Account::from_name stops taking a char const*.
|
StringView username {};
|
||||||
DeprecatedString username {};
|
|
||||||
|
|
||||||
auto args_parser = Core::ArgsParser();
|
auto args_parser = Core::ArgsParser();
|
||||||
args_parser.set_general_help("Modify an account password.");
|
args_parser.set_general_help("Modify an account password.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue