mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +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
|
@ -54,11 +54,11 @@ static RefPtr<MultiScaleBitmaps> s_inactive_window_shadow;
|
|||
static RefPtr<MultiScaleBitmaps> s_menu_shadow;
|
||||
static RefPtr<MultiScaleBitmaps> s_taskbar_shadow;
|
||||
static RefPtr<MultiScaleBitmaps> s_tooltip_shadow;
|
||||
static DeprecatedString s_last_active_window_shadow_path;
|
||||
static DeprecatedString s_last_inactive_window_shadow_path;
|
||||
static DeprecatedString s_last_menu_shadow_path;
|
||||
static DeprecatedString s_last_taskbar_shadow_path;
|
||||
static DeprecatedString s_last_tooltip_shadow_path;
|
||||
static ByteString s_last_active_window_shadow_path;
|
||||
static ByteString s_last_inactive_window_shadow_path;
|
||||
static ByteString s_last_menu_shadow_path;
|
||||
static ByteString s_last_taskbar_shadow_path;
|
||||
static ByteString s_last_tooltip_shadow_path;
|
||||
|
||||
Gfx::IntRect WindowFrame::frame_rect_for_window(Window& window, Gfx::IntRect const& rect)
|
||||
{
|
||||
|
@ -148,7 +148,7 @@ void WindowFrame::set_button_icons()
|
|||
|
||||
void WindowFrame::reload_config()
|
||||
{
|
||||
DeprecatedString icons_path = WindowManager::the().palette().title_button_icons_path();
|
||||
ByteString icons_path = WindowManager::the().palette().title_button_icons_path();
|
||||
|
||||
auto reload_bitmap = [&](RefPtr<MultiScaleBitmaps>& multiscale_bitmap, StringView path, StringView default_path = ""sv) {
|
||||
StringBuilder full_path;
|
||||
|
@ -177,9 +177,9 @@ void WindowFrame::reload_config()
|
|||
reload_icon(s_close_icon, "window-close"sv, "/res/icons/16x16/window-close.png"sv);
|
||||
reload_icon(s_close_modified_icon, "window-close-modified"sv, "/res/icons/16x16/window-close-modified.png"sv);
|
||||
|
||||
auto load_shadow = [](DeprecatedString const& path, DeprecatedString& last_path, RefPtr<MultiScaleBitmaps>& shadow_bitmap) {
|
||||
auto load_shadow = [](ByteString const& path, ByteString& last_path, RefPtr<MultiScaleBitmaps>& shadow_bitmap) {
|
||||
if (path.is_empty()) {
|
||||
last_path = DeprecatedString::empty();
|
||||
last_path = ByteString::empty();
|
||||
shadow_bitmap = nullptr;
|
||||
} else if (!shadow_bitmap || last_path != path) {
|
||||
if (shadow_bitmap)
|
||||
|
@ -189,7 +189,7 @@ void WindowFrame::reload_config()
|
|||
if (shadow_bitmap)
|
||||
last_path = path;
|
||||
else
|
||||
last_path = DeprecatedString::empty();
|
||||
last_path = ByteString::empty();
|
||||
}
|
||||
};
|
||||
load_shadow(WindowManager::the().palette().active_window_shadow_path(), s_last_active_window_shadow_path, s_active_window_shadow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue