mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +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
Notes:
sideshowbarker
2024-07-17 01:56:54 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/6b3cf21964 Pull-request: https://github.com/SerenityOS/serenity/pull/16904 Reviewed-by: https://github.com/nico ✅
1 changed files with 1 additions and 2 deletions
|
@ -30,8 +30,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
bool del = false;
|
||||
bool lock = false;
|
||||
bool unlock = false;
|
||||
// FIXME: Replace with StringView once Core::Account::from_name stops taking a char const*.
|
||||
DeprecatedString username {};
|
||||
StringView username {};
|
||||
|
||||
auto args_parser = Core::ArgsParser();
|
||||
args_parser.set_general_help("Modify an account password.");
|
||||
|
|
Loading…
Reference in a new issue