mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -7,8 +7,8 @@
|
|||
*/
|
||||
|
||||
#include <AK/Base64.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/Random.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibMain/Main.h>
|
||||
|
@ -35,10 +35,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
int uid = 0;
|
||||
int gid = USERS_GID;
|
||||
bool create_home_dir = false;
|
||||
String password = "";
|
||||
String shell = DEFAULT_SHELL;
|
||||
String gecos = "";
|
||||
String username;
|
||||
DeprecatedString password = "";
|
||||
DeprecatedString shell = DEFAULT_SHELL;
|
||||
DeprecatedString gecos = "";
|
||||
DeprecatedString username;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(home_path, "Home directory for the new user", "home-dir", 'd', "path");
|
||||
|
@ -107,9 +107,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return 1;
|
||||
}
|
||||
|
||||
String home;
|
||||
DeprecatedString home;
|
||||
if (!home_path)
|
||||
home = String::formatted("/home/{}", username);
|
||||
home = DeprecatedString::formatted("/home/{}", username);
|
||||
else
|
||||
home = home_path;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue