mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:58:12 +00:00
Everywhere: Rename {Deprecated => Byte}String
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
This commit is contained in:
parent
38d62563b3
commit
5e1499d104
1615 changed files with 10257 additions and 10257 deletions
|
@ -47,11 +47,11 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
WindowServer::g_config = TRY(Core::ConfigFile::open("/etc/WindowServer.ini", Core::ConfigFile::AllowWriting::Yes));
|
||||
auto theme_name = WindowServer::g_config->read_entry("Theme", "Name", "Default");
|
||||
|
||||
Optional<DeprecatedString> custom_color_scheme_path = OptionalNone();
|
||||
Optional<ByteString> custom_color_scheme_path = OptionalNone();
|
||||
if (WindowServer::g_config->read_bool_entry("Theme", "LoadCustomColorScheme", false))
|
||||
custom_color_scheme_path = WindowServer::g_config->read_entry("Theme", "CustomColorSchemePath");
|
||||
|
||||
auto theme = TRY(Gfx::load_system_theme(DeprecatedString::formatted("/res/themes/{}.ini", theme_name), custom_color_scheme_path));
|
||||
auto theme = TRY(Gfx::load_system_theme(ByteString::formatted("/res/themes/{}.ini", theme_name), custom_color_scheme_path));
|
||||
Gfx::set_system_theme(theme);
|
||||
auto palette = Gfx::PaletteImpl::create_with_anonymous_buffer(theme);
|
||||
|
||||
|
@ -77,9 +77,9 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
|
||||
// First check which screens are explicitly configured
|
||||
{
|
||||
AK::HashTable<DeprecatedString> fb_devices_configured;
|
||||
AK::HashTable<ByteString> fb_devices_configured;
|
||||
WindowServer::ScreenLayout screen_layout;
|
||||
DeprecatedString error_msg;
|
||||
ByteString error_msg;
|
||||
|
||||
auto add_unconfigured_display_connector_devices = [&]() -> ErrorOr<void> {
|
||||
// Enumerate the /dev/gpu/connectorX devices and try to set up any ones we find that we haven't already used
|
||||
|
@ -88,7 +88,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
auto path = di.next_path();
|
||||
if (!path.starts_with("connector"sv))
|
||||
continue;
|
||||
auto full_path = DeprecatedString::formatted("/dev/gpu/{}", path);
|
||||
auto full_path = ByteString::formatted("/dev/gpu/{}", path);
|
||||
if (!FileSystem::is_device(full_path))
|
||||
continue;
|
||||
auto display_connector_fd = TRY(Core::System::open(full_path, O_RDWR | O_CLOEXEC));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue